1 #ifndef VRPN_XINPUTGAMEPAD_H 2 #define VRPN_XINPUTGAMEPAD_H 6 #if defined(_WIN32) && defined(VRPN_USE_WINDOWS_XINPUT) 20 vrpn_XInputGamepad(
const char *name,
vrpn_Connection *c = NULL,
unsigned int controllerIndex = 0);
21 ~vrpn_XInputGamepad();
38 void update_vibration();
41 virtual vrpn_float64 normalize_axis(SHORT axis, SHORT deadzone)
const;
42 virtual vrpn_float64 normalize_trigger(BYTE trigger)
const;
43 virtual vrpn_float64 normalize_dpad(WORD buttons)
const;
46 unsigned int _controllerIndex;
52 #endif // _WIN32 && VRPN_USE_DIRECTINPUT 53 #endif // VRPN_XINPUTGAMEPAD_H const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY
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...
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 ...
This structure is what is passed to a vrpn_Connection message callback.