7#ifndef VRPN_WIN32JOYSTICK_H
8#define VRPN_WIN32JOYSTICK_H
21 vrpn_Joywin32 (
const char * name,
vrpn_Connection * c, vrpn_uint8 joyNumber = 1, vrpn_float64 readRate = 60, vrpn_uint8 mode = 0, vrpn_int32 deadzone = 0);
33 struct timeval _timestamp;
34 vrpn_float64 _read_rate;
35 vrpn_float64 _deadzone;
37 virtual vrpn_int32 get_report(
void);
38 void clear_values(
void);
39 void init_joystick(
void);
45 virtual void report (vrpn_uint32 class_of_service
48 vrpn_uint32 _numbuttons;
49 vrpn_uint32 _numchannels;
51 vrpn_uint8 _joyNumber;
52 struct timeval last_error_report;
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 ...
class VRPN_API vrpn_Connection
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY