14 #ifndef XINPUTDEVICE_H 15 #define XINPUTDEVICE_H 20 #if defined(_WIN32) && !defined(CPPPARSER) 26 typedef struct _XINPUT_CAPABILITIES_EX XINPUT_CAPABILITIES_EX;
27 typedef struct _XINPUT_STATE XINPUT_STATE;
29 typedef struct tagRID_DEVICE_INFO RID_DEVICE_INFO;
35 class EXPCL_PANDA_DEVICE XInputDevice final :
public InputDevice {
37 XInputDevice(DWORD user_index);
40 bool check_arrival(
const RID_DEVICE_INFO &info, DEVINST inst,
41 const std::string &name,
const std::string &manufacturer);
43 static bool init_xinput();
46 void init_device(
const XINPUT_CAPABILITIES_EX &caps,
const XINPUT_STATE &state);
47 virtual void do_set_vibration(
double strong,
double weak);
48 virtual void do_poll();
55 static bool _initialized;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.