|
virtual void | writeKeepAlive (vrpn_uint16 interval=10000, vrpn_uint16 commandId=0) |
|
| vrpn_Oculus (vrpn_uint16 product_id, vrpn_uint8 num_channels, const char *name, vrpn_Connection *c=NULL, double keepAliveSeconds=9.0) |
| Protected constructor so you can't instantiate this base class.
|
|
virtual bool | parse_message (std::size_t bytes, vrpn_uint8 *buffer) |
|
void | parse_message_type_1 (std::size_t bytes, vrpn_uint8 *buffer) |
| Parse and send reports for type-1 message
|
|
void | on_data_received (std::size_t bytes, vrpn_uint8 *buffer) |
|
virtual int | register_types (void) |
|
virtual vrpn_int32 | encode_to (char *buf) |
|
virtual void | report_changes (vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW) |
|
virtual void | report (vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW) |
|
virtual int | init (void) |
|
virtual int | register_senders (void) |
|
int | register_autodeleted_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER) |
|
int | send_text_message (const char *msg, struct timeval timestamp, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0) |
| Sends a NULL-terminated text message from the device d_sender_id
|
|
SendTextMessageBoundCall | send_text_message (vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL) |
|
void | server_mainloop (void) |
|
void | client_mainloop (void) |
|
virtual void | on_data_received (size_t bytes, vrpn_uint8 *buffer)=0 |
| Derived class reimplements this callback. It is called whenever a read returns some data.
|
|
void | send_data (size_t bytes, const vrpn_uint8 *buffer) |
| Call this to send data to the device
|
|
void | send_feature_report (size_t bytes, const vrpn_uint8 *buffer) |
|
int | get_feature_report (size_t bytes, vrpn_uint8 *buffer) |
|
| vrpn_HidInterface (vrpn_HidAcceptor *acceptor, vrpn_uint16 vendor=0, vrpn_uint16 product=0, hid_device *device=NULL) |
|
| vrpn_HidInterface (vrpn_HidAcceptor *acceptor, hid_device *device) |
|
| vrpn_HidInterface (const char *device_path, vrpn_HidAcceptor *acceptor, vrpn_uint16 vendor=0, vrpn_uint16 product=0) |
|
virtual bool | connected () const |
| Returns true iff the last device I/O succeeded
|
|
virtual void | update () |
|
virtual bool | reconnect () |
|
vrpn_uint16 | vendor () const |
|
vrpn_uint16 | product () const |
|
int | interface_number () const |
|
Oculus Rift DK1 head-mounted display