vrpn
07.33
Virtual Reality Peripheral Network
|
Go to the documentation of this file.
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;
vrpn_HidAcceptor * _filter
static int VRPN_CALLBACK on_last_disconnect(void *thisPtr, vrpn_HANDLERPARAM p)
virtual void report(void)
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
virtual ~vrpn_Microsoft_SideWinder(void)
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
virtual ~vrpn_Afterglow_Ax1_For_Xbox_360(void)
vrpn_Microsoft_Controller_Raw(vrpn_HidAcceptor *filter, const char *name, vrpn_Connection *c=0)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual ~vrpn_Microsoft_Controller_Raw(void)
vrpn_Afterglow_Ax1_For_Xbox_360(const char *name, vrpn_Connection *c)
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY
This structure is what is passed to a vrpn_Connection message callback.
int register_types(void)
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
void on_data_received(size_t bytes, vrpn_uint8 *buffer)
Derived class reimplements this callback.
virtual ~vrpn_Microsoft_Controller_Raw_Xbox_360(void)
virtual ~vrpn_Microsoft_SideWinder_Precision_2(void)
virtual void decodePacket(size_t bytes, vrpn_uint8 *buffer)=0
virtual void mainloop(void)=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
Generic connection class not specific to the transport mechanism.
vrpn_Microsoft_Controller_Raw_Xbox_S(const char *name, vrpn_Connection *c=0)
virtual ~vrpn_Microsoft_Controller_Raw_Xbox_S(void)
static int VRPN_CALLBACK on_connect(void *thisPtr, vrpn_HANDLERPARAM p)
struct timeval _timestamp
vrpn_Microsoft_SideWinder(const char *name, vrpn_Connection *c=0)
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Microsoft_Controller_Raw_Xbox_360(const char *name, vrpn_Connection *c=0, vrpn_uint16 vendorId=MICROSOFT_VENDOR, vrpn_uint16 productId=XBOX_360)
vrpn_Microsoft_SideWinder_Precision_2(const char *name, vrpn_Connection *c=0)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
Class from which all user-level (and other) classes that communicate with vrpn_Connections should der...