1
#ifndef VRPN_KEYBOARD_H
2
#define VRPN_KEYBOARD_H
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.
9
// This implementation is Windows-specific, as it leverages the windows mouse calls.
12
#include "vrpn_Button.h"
14
class VRPN_API vrpn_Keyboard: public vrpn_Button_Filter
17
vrpn_Keyboard (const char * name, vrpn_Connection * c);
20
/// Called once through each main loop iteration to handle updates.
21
virtual void mainloop ();
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);