9 __gnu_cxx::hash_map<IOHIDElementCookie, DeviceButton> m_Mapping;
12 bool AddLogicalDevice(
int usagePage,
int usage);
13 void AddElement(
int usagePage,
15 IOHIDElementCookie cookie,
16 const CFDictionaryRef properties);
20 void GetButtonPresses(
21 std::vector<DeviceInput>& vPresses,
22 IOHIDElementCookie cookie,
24 const std::chrono::time_point<std::chrono::steady_clock>& now)
const;
25 void GetDevicesAndDescriptions(std::vector<InputDeviceInfo>& vDevices)
const;
27 static bool DeviceButtonToMacVirtualKey(DeviceButton button,