1#ifndef VRPN_SPACEBALL_H
2#define VRPN_SPACEBALL_H
16 const char * port,
int baud);
23 virtual int reset(
void);
28 unsigned char buf[512];
38 struct timeval timestamp;
40 virtual void clear_values(
void);
44 virtual int get_report(
void);
48 (vrpn_uint32 class_of_service
53 (vrpn_uint32 class_of_service
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.
int packtype
What kind of packet we are decoding.
int packlen
Expected packet length.
int spaceball4000
We found a Spaceball 4000.
int _numchannels
How many analog channels to open.
int leftymode4000
Spaceball 4000 is in lefty mode.
int resetoccured
A reset event has occurred.
int bufpos
Current char pos in buffer.
int escapedchar
We're processing an escaped char.
int _numbuttons
How many buttons to open.
int null_radius
range where no motion should be reported
int erroroccured
A device error has occurred.
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY