1 Star 0 Fork 1

upczap/vrpn

forked from ianaxe/vrpn 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vrpn_Button_USB.h 835 Bytes
一键复制 编辑 原始数据 按行查看 历史
#ifndef VRPN_BUTTON_USB_H
#ifdef _WIN32
#include "vrpn_Button.h"
// USB button code.
// This class is derived from the vrpn_Button_Filter class, so that it
// can be made to toggle its buttons using messages from the client.
class VRPN_API vrpn_Button_USB : public vrpn_Button_Filter {
public:
vrpn_Button_USB(const char *name, const char *deviceName,
vrpn_Connection *c);
~vrpn_Button_USB();
virtual void mainloop();
protected:
void read(void);
//! writes data to the device
bool USBWrite(const unsigned long &data);
//! reads data from the device
bool USBRead(unsigned long &data, int port);
//! basic io handeling
bool USB_IO(unsigned long lIn, int lInSize, unsigned long &lOut,
int lOutSize);
HANDLE m_hDevice; //!< the usb device
};
#endif
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/jari/vrpn.git
[email protected]:jari/vrpn.git
jari
vrpn
vrpn
master

搜索帮助