7#ifndef VRPN_WIN32JOYSTICK_H
8#define VRPN_WIN32JOYSTICK_H
12#include "vrpn_Analog.h"
13#include "vrpn_Button.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);
43 = vrpn_CONNECTION_LOW_LATENCY);
45 virtual void report (vrpn_uint32 class_of_service
46 = vrpn_CONNECTION_LOW_LATENCY);
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)
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
virtual void mainloop()=0
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562