14#ifndef VRPN_ANALOG_5DTUSB_H
15#define VRPN_ANALOG_5DTUSB_H
27#if defined(VRPN_USE_HID)
61 std::string get_description()
const;
80 struct timeval _timestamp;
136 product(desiredProduct),
142 return (device.
vendor == vendor) && ((device.
product & mask) == (product & mask));
Specialization of vrpn_Analog_5dtUSB for a 14-sensor, left-hand glove. Not tested as of 8-Mar-2011 be...
virtual ~vrpn_Analog_5dtUSB_Glove14Left()
Specialization of vrpn_Analog_5dtUSB for a 14-sensor, right-hand glove. Not tested as of 8-Mar-2011 b...
virtual ~vrpn_Analog_5dtUSB_Glove14Right()
Specialization of vrpn_Analog_5dtUSB for a 5-sensor, left-hand glove.
virtual ~vrpn_Analog_5dtUSB_Glove5Left()
Specialization of vrpn_Analog_5dtUSB for a 5-sensor, right-hand glove.
virtual ~vrpn_Analog_5dtUSB_Glove5Right()
5th Dimension Technologies (5dt) "Ultra" USB data glove driver
bool _wasConnected
Flag indicating whether we were connected last time through the mainloop. Used to send a "normal"-sev...
bool isRightHand() const
Accessor to know if this is a right hand glove.
bool isLeftHand() const
Accessor to know if this is a left hand glove.
bool _isLeftHand
Flag for left handedness.
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Send a report whether something has changed or not (for servers) Optionally, tell what time to stamp ...
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Send a report only if something has changed (for servers) Optionally, tell what time to stamp the val...
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
vrpn_uint16 product() const
Returns USB product ID of connected device May not contain valid if an already-open device was provid...
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)=0
Derived class reimplements this callback.
vrpn_uint16 vendor() const
Returns USB vendor ID of connected device May not contain valid if an already-open device was provide...
HID acceptor subclass used by vrpn_Analog_5dtUSB since the bits of the product ID for these devices d...
vrpn_HidProductMaskAcceptor(vrpn_uint16 vendorId, vrpn_uint16 productMask=0x0000, vrpn_uint16 desiredProduct=0x0000)
bool accept(const vrpn_HIDDEVINFO &device)
~vrpn_HidProductMaskAcceptor()
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY