16#if defined(VRPN_USE_HID)
39 virtual bool parse_message(std::size_t bytes, vrpn_uint8 *buffer);
vrpn_Analog(const char *name, vrpn_Connection *c=NULL)
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_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...
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)=0
Derived class reimplements this callback.
vrpn_Laputa(const char *name, vrpn_Connection *c=NULL)
virtual bool parse_message(std::size_t bytes, vrpn_uint8 *buffer)
struct timeval d_timestamp
Timestamp updated during mainloop()
void parse_message_type_1(std::size_t bytes, vrpn_uint8 *buffer)
Parse and send reports for type-1 message.