vrpn 07.35
Virtual Reality Peripheral Network
 
Loading...
Searching...
No Matches
vrpn_Keyboard.h
Go to the documentation of this file.
1#ifndef VRPN_KEYBOARD_H
2#define VRPN_KEYBOARD_H
3
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" // for vrpn_Button_Filter
13#include "vrpn_Configure.h" // for VRPN_API
14
16
18{
19 public:
20 vrpn_Keyboard (const char * name, vrpn_Connection * c);
22
24 virtual void mainloop ();
25
26 protected:
28 // 0 otherwise (this only makes sense for buffered implementations;
29 // return 0 if it is not a buffered implementation.
30 virtual int get_report(void);
31};
32
33#endif
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Button_Filter(const char *, vrpn_Connection *c=NULL)
Generic connection class not specific to the transport mechanism.
virtual int get_report(void)
Read the current status. Return 1 if a report was found,.
vrpn_Keyboard(const char *name, vrpn_Connection *c)
#define VRPN_API
class VRPN_API vrpn_Connection