12 bool AddLogicalDevice(
int usagePage,
int usage) {
return true; }
13 void AddElement(
int usagePage,
15 IOHIDElementCookie cookie,
16 const CFDictionaryRef properties)
20 bool InitDevice(
int vid,
int pid) {
return vid == 0x0d2f && pid == 0x0001; }
23 void GetButtonPresses(
24 std::vector<DeviceInput>& vPresses,
25 IOHIDElementCookie cookie,
27 const std::chrono::time_point<std::chrono::steady_clock>& now)
const;
28 int AssignIDs(InputDevice startID);
29 void GetDevicesAndDescriptions(std::vector<InputDeviceInfo>& vDevices)
const;