Etterna 0.74.4
Loading...
Searching...
No Matches
KeyboardDevice.h
1#ifndef KEYBOARD_DEVICE_H
2#define KEYBOARD_DEVICE_H
3
4#include "HIDDevice.h"
5
7{
8 private:
9 __gnu_cxx::hash_map<IOHIDElementCookie, DeviceButton> m_Mapping;
10
11 protected:
12 bool AddLogicalDevice(int usagePage, int usage);
13 void AddElement(int usagePage,
14 int usage,
15 IOHIDElementCookie cookie,
16 const CFDictionaryRef properties);
17 void Open();
18
19 public:
20 void GetButtonPresses(
21 std::vector<DeviceInput>& vPresses,
22 IOHIDElementCookie cookie,
23 int value,
24 const std::chrono::time_point<std::chrono::steady_clock>& now) const;
25 void GetDevicesAndDescriptions(std::vector<InputDeviceInfo>& vDevices) const;
26
27 static bool DeviceButtonToMacVirtualKey(DeviceButton button,
28 UInt8& iMacVKOut);
29};
30
31#endif
Definition HIDDevice.h:70
Definition KeyboardDevice.h:7