RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_Keyboard.h
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
15class VRPN_API vrpn_Connection;
16
17class VRPN_API vrpn_Keyboard: public vrpn_Button_Filter
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
定义 vrpn_Button.h:66
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_Keyboard.h:18
virtual int get_report(void)
Read the current status. Return 1 if a report was found,
virtual void mainloop()
Called once through each main loop iteration to handle updates.