15#if defined(VRPN_USE_HID)
Class from which all user-level (and other) classes that communicate with vrpn_Connections should der...
int register_types(void)
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
vrpn_CHProducts_Controller_Raw(vrpn_HidAcceptor *filter, const char *name, vrpn_Connection *c=0, vrpn_uint16 vendor=0, vrpn_uint16 product=0)
vrpn_HidAcceptor * _filter
static int VRPN_CALLBACK on_last_disconnect(void *thisPtr, vrpn_HANDLERPARAM p)
virtual void decodePacket(size_t bytes, vrpn_uint8 *buffer)=0
void on_data_received(size_t bytes, vrpn_uint8 *buffer)
Derived class reimplements this callback.
struct timeval _timestamp
static int VRPN_CALLBACK on_connect(void *thisPtr, vrpn_HANDLERPARAM p)
virtual ~vrpn_CHProducts_Controller_Raw(void)
virtual void mainloop(void)=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
vrpn_CHProducts_Fighterstick_USB(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 ...
virtual ~vrpn_CHProducts_Fighterstick_USB(void)
Generic connection class not specific to the transport mechanism.
virtual void report(void)
vrpn_uint16 product() const
Returns USB product ID of connected device May not contain valid if an already-open device was provid...
vrpn_uint16 vendor() const
Returns USB vendor ID of connected device May not contain valid if an already-open device was provide...
This structure is what is passed to a vrpn_Connection message callback.
All types of client/server/peer objects in VRPN should be derived from the vrpn_BaseClass type descri...
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY