15 #if defined(VRPN_USE_HID) 18 static const vrpn_uint16 MICROSOFT_VENDOR = 0x045e;
19 static const vrpn_uint16 SIDEWINDER_PRECISION_2 = 0x0038;
20 static const vrpn_uint16 SIDEWINDER = 0x003c;
21 static const vrpn_uint16 XBOX_S = 0x0289;
22 static const vrpn_uint16 XBOX_360 = 0x028e;
26 static const vrpn_uint16 AFTERGLOW_VENDOR = 0x0e6f;
27 static const vrpn_uint16 AX1_FOR_XBOX_360 = 0x0213;
52 virtual void decodePacket(
size_t bytes, vrpn_uint8 *buffer) = 0;
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Microsoft_Controller_Raw(vrpn_HidAcceptor *filter, const char *name, vrpn_Connection *c=0)
int register_types(void)
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
vrpn_Microsoft_Controller_Raw_Xbox_360(const char *name, vrpn_Connection *c=0, vrpn_uint16 vendorId=MICROSOFT_VENDOR, vrpn_uint16 productId=XBOX_360)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual ~vrpn_Microsoft_SideWinder_Precision_2(void)
vrpn_Microsoft_SideWinder(const char *name, vrpn_Connection *c=0)
virtual void mainloop(void)=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
virtual ~vrpn_Afterglow_Ax1_For_Xbox_360(void)
vrpn_Afterglow_Ax1_For_Xbox_360(const char *name, vrpn_Connection *c)
Generic connection class not specific to the transport mechanism.
virtual ~vrpn_Microsoft_Controller_Raw_Xbox_360(void)
All types of client/server/peer objects in VRPN should be derived from the vrpn_BaseClass type descri...
struct timeval _timestamp
virtual void report(void)
virtual ~vrpn_Microsoft_SideWinder(void)
This structure is what is passed to a vrpn_Connection message callback.
virtual ~vrpn_Microsoft_Controller_Raw_Xbox_S(void)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
vrpn_Microsoft_Controller_Raw_Xbox_S(const char *name, vrpn_Connection *c=0)
virtual ~vrpn_Microsoft_Controller_Raw(void)
static int VRPN_CALLBACK on_last_disconnect(void *thisPtr, vrpn_HANDLERPARAM p)
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Class from which all user-level (and other) classes that communicate with vrpn_Connections should der...
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_HidAcceptor * _filter
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
static int VRPN_CALLBACK on_connect(void *thisPtr, vrpn_HANDLERPARAM p)
void on_data_received(size_t bytes, vrpn_uint8 *buffer)
Derived class reimplements this callback.
vrpn_Microsoft_SideWinder_Precision_2(const char *name, vrpn_Connection *c=0)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual void decodePacket(size_t bytes, vrpn_uint8 *buffer)=0