1
#ifndef VRPN_BUTTON_USB_H
3
#include "vrpn_Button.h"
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.
8
class VRPN_API vrpn_Button_USB : public vrpn_Button {
10
vrpn_Button_USB(const char *name, const char *deviceName, vrpn_Connection *c);
13
virtual void mainloop();
17
//! writes data to the device
18
bool USBWrite(const unsigned long &data);
19
//! reads data from the device
20
bool USBRead(unsigned long &data, int port);
21
//! basic io handeling
22
bool USB_IO(unsigned long lIn, int lInSize, unsigned long &lOut, int lOutSize);
23
HANDLE m_hDevice; //!< the usb device