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;
37 class EXPCL_PANDA_DEVICE XInputDevice final :
public InputDevice {
39 XInputDevice(DWORD user_index);
42 bool check_arrival(
const RID_DEVICE_INFO &info, DEVINST inst,
43 const std::string &name,
const std::string &manufacturer);
45 static bool init_xinput();
48 void init_device(
const XINPUT_CAPABILITIES_EX &caps,
const XINPUT_STATE &state);
49 virtual void do_set_vibration(
double strong,
double weak);
50 virtual void do_poll();
57 static bool _initialized;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.