10 __gnu_cxx::hash_map<IOHIDElementCookie, DeviceButton> mapping;
11 IOHIDElementCookie x_axis, y_axis, z_axis, x_rot, y_rot, z_rot, hat;
26 std::vector<Joystick> m_vSticks;
29 bool AddLogicalDevice(
int usagePage,
int usage);
30 void AddElement(
int usagePage,
32 IOHIDElementCookie cookie,
33 const CFDictionaryRef properties);
35 bool InitDevice(
int vid,
int pid);
38 void GetButtonPresses(
39 std::vector<DeviceInput>& vPresses,
40 IOHIDElementCookie cookie,
42 const std::chrono::time_point<std::chrono::steady_clock>& now)
const;
43 int AssignIDs(InputDevice startID);
44 void GetDevicesAndDescriptions(std::vector<InputDeviceInfo>& vDevices)
const;