15 #if defined(VRPN_USE_HID) 50 virtual void decodePacket(
size_t bytes, vrpn_uint8 *buffer) = 0;
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY
static int VRPN_CALLBACK on_connect(void *thisPtr, vrpn_HANDLERPARAM p)
virtual void decodePacket(size_t bytes, vrpn_uint8 *buffer)=0
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void report_changes(void)
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
static int VRPN_CALLBACK on_last_disconnect(void *thisPtr, vrpn_HANDLERPARAM p)
void report_changes(void)
vrpn_Xkeys_XK3(const char *name, vrpn_Connection *c=0)
vrpn_Xkeys_Pro(const char *name, vrpn_Connection *c=0)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual ~vrpn_Xkeys_Joystick()
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void on_data_received(size_t bytes, vrpn_uint8 *buffer)
Derived class reimplements this callback.
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
int register_types(void)
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail...
Generic connection class not specific to the transport mechanism.
virtual ~vrpn_Xkeys_Jog_And_Shuttle()
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Xkeys_Desktop(const char *name, vrpn_Connection *c=0)
All types of client/server/peer objects in VRPN should be derived from the vrpn_BaseClass type descri...
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual ~vrpn_Xkeys_XK3()
vrpn_Xkeys_Jog_And_Shuttle(const char *name, vrpn_Connection *c=0)
virtual void report(void)
virtual ~vrpn_Xkeys_Pro()
This structure is what is passed to a vrpn_Connection message callback.
vrpn_Xkeys(vrpn_HidAcceptor *filter, const char *name, vrpn_Connection *c=0, bool toggle_light=true)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
void report_changes(void)
vrpn_HidAcceptor * _filter
vrpn_Xkeys_Joystick(const char *name, vrpn_Connection *c=0)
struct timeval _timestamp
Class from which all user-level (and other) classes that communicate with vrpn_Connections should der...
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
virtual ~vrpn_Xkeys_Desktop()