15#if defined(VRPN_USE_HID)
45 bool toggle_light =
true);
81 bool toggle_light =
true)
93 bool toggle_light =
true)
110 bool toggle_light =
true)
vrpn_Analog(const char *name, vrpn_Connection *c=NULL)
vrpn_BaseClass(const char *name, vrpn_Connection *c=NULL)
Names the device and assigns or opens connection, calls registration methods.
Generic connection class not specific to the transport mechanism.
virtual void report(void)
vrpn_Dial(const char *name, vrpn_Connection *c=NULL)
vrpn_uint16 product() const
Returns USB product ID of connected device May not contain valid if an already-open device was provid...
vrpn_HidInterface(vrpn_HidAcceptor *acceptor, vrpn_uint16 vendor=0, vrpn_uint16 product=0, hid_device *device=NULL)
Constructor If we already have a HID device from some other source, it can be passed and we'll take o...
vrpn_uint16 vendor() const
Returns USB vendor ID of connected device May not contain valid if an already-open device was provide...
vrpn_Xkeys_Desktop(const char *name, vrpn_Connection *c=0)
virtual ~vrpn_Xkeys_Desktop()
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
void report_changes(void)
vrpn_Xkeys_Jog_And_Shuttle12(const char *name, vrpn_Connection *c=0)
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual ~vrpn_Xkeys_Jog_And_Shuttle12()
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual ~vrpn_Xkeys_Jog_And_Shuttle68()
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Xkeys_Jog_And_Shuttle68(const char *name, vrpn_Connection *c=0)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual ~vrpn_Xkeys_Jog_And_Shuttle()
vrpn_Xkeys_Jog_And_Shuttle(const char *name, vrpn_Connection *c=0)
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Xkeys_Joystick12(const char *name, vrpn_Connection *c=0)
virtual ~vrpn_Xkeys_Joystick12()
vrpn_Xkeys_Joystick(const char *name, vrpn_Connection *c=0)
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual ~vrpn_Xkeys_Joystick()
virtual ~vrpn_Xkeys_Pro()
vrpn_Xkeys_Pro(const char *name, vrpn_Connection *c=0)
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
void report_changes(void)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
virtual ~vrpn_Xkeys_XK3()
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Xkeys_XK3(const char *name, vrpn_Connection *c=0)
void decodePacket(size_t bytes, vrpn_uint8 *buffer)
void report_changes(void)
vrpn_Xkeys_noLEDs(vrpn_HidAcceptor *filter, const char *name, vrpn_Connection *c=0, vrpn_uint16 vendor=0, vrpn_uint16 product=0, bool toggle_light=true)
virtual void setLEDs(LED_STATE, LED_STATE)
virtual void setLEDs(LED_STATE red, LED_STATE green)
vrpn_Xkeys_v1(vrpn_HidAcceptor *filter, const char *name, vrpn_Connection *c=0, vrpn_uint16 vendor=0, vrpn_uint16 product=0, bool toggle_light=true)
virtual void setLEDs(LED_STATE red, LED_STATE green)
vrpn_Xkeys_v2(vrpn_HidAcceptor *filter, const char *name, vrpn_Connection *c=0, vrpn_uint16 vendor=0, vrpn_uint16 product=0, bool toggle_light=true)
int register_types(void)
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
struct timeval _timestamp
virtual void setLEDs(LED_STATE red, LED_STATE green)=0
vrpn_HidAcceptor * _filter
virtual void decodePacket(size_t bytes, vrpn_uint8 *buffer)=0
vrpn_Xkeys(vrpn_HidAcceptor *filter, const char *name, vrpn_Connection *c=0, vrpn_uint16 vendor=0, vrpn_uint16 product=0, bool toggle_light=true)
virtual void mainloop()=0
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.
static int VRPN_CALLBACK on_last_disconnect(void *thisPtr, vrpn_HANDLERPARAM p)
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