~hitmuri/vjpirate/trunk

« back to all changes in this revision

Viewing changes to os/win/include/vrpn_Keyboard.h

  • Committer: Florent Berthaut
  • Date: 2014-07-26 18:53:16 UTC
  • mfrom: (5.1.12 mac)
  • Revision ID: flo@localhost.localdomain-20140726185316-c2ucnwmgm5kij4e2
Merged mac branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef VRPN_KEYBOARD_H
 
2
#define VRPN_KEYBOARD_H
 
3
 
 
4
///////////////////////////////////////////////////////////////////////////
 
5
// vrpn_Keyboard is a VRPN server class to publish events from the PC's keyboard.
 
6
// It provides a 256-channel vrpn_Button for keyboard buttons, reporting the
 
7
// scan codes for the key.
 
8
//
 
9
// This implementation is Windows-specific, as it leverages the windows mouse calls.
 
10
//
 
11
 
 
12
#include "vrpn_Button.h"
 
13
 
 
14
class VRPN_API vrpn_Keyboard: public vrpn_Button_Filter
 
15
{
 
16
  public:
 
17
    vrpn_Keyboard (const char * name, vrpn_Connection * c);
 
18
    ~vrpn_Keyboard () ;
 
19
 
 
20
    /// Called once through each main loop iteration to handle updates.
 
21
    virtual void mainloop ();
 
22
 
 
23
  protected:
 
24
    /// Read the current status.  Return 1 if a report was found,
 
25
    // 0 otherwise (this only makes sense for buffered implementations;
 
26
    // return 0 if it is not a buffered implementation.
 
27
    virtual     int get_report(void);
 
28
};
 
29
 
 
30
#endif