RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_Button_USB.h
1#ifndef VRPN_BUTTON_USB_H
2#ifdef _WIN32
3#include "vrpn_Button.h"
4
5// USB button code.
6// This class is derived from the vrpn_Button_Filter class, so that it
7// can be made to toggle its buttons using messages from the client.
8class VRPN_API vrpn_Button_USB : public vrpn_Button_Filter {
9public:
10 vrpn_Button_USB(const char *name, const char *deviceName,
12 ~vrpn_Button_USB();
13
14 virtual void mainloop();
15
16protected:
17 void read(void);
19 bool USBWrite(const unsigned long &data);
21 bool USBRead(unsigned long &data, int port);
23 bool USB_IO(unsigned long lIn, int lInSize, unsigned long &lOut,
24 int lOutSize);
25 HANDLE m_hDevice;
26};
27#endif
28#endif
virtual void mainloop()=0
定义 vrpn_Button.h:66
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562