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
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY
int erroroccured
A device error has occurred.
int escapedchar
We're processing an escaped char.
int packtype
What kind of packet we are decoding.
int _numchannels
How many analog channels to open.
int null_radius
range where no motion should be reported
Generic connection class not specific to the transport mechanism.
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 mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
int bufpos
Current char pos in buffer.
int _numbuttons
How many buttons to open.
int resetoccured
A reset event has occurred.
int spaceball4000
We found a Spaceball 4000.
int leftymode4000
Spaceball 4000 is in lefty mode.
int packlen
Expected packet length.