Etterna 0.74.4
Loading...
Searching...
No Matches
PumpDevice.h
1#ifndef PUMP_DEVICE_H
2#define PUMP_DEVICE_H
3
4#include "HIDDevice.h"
5
6class PumpDevice : public HIDDevice
7{
8 private:
9 InputDevice m_Id;
10
11 protected:
12 bool AddLogicalDevice(int usagePage, int usage) { return true; }
13 void AddElement(int usagePage,
14 int usage,
15 IOHIDElementCookie cookie,
16 const CFDictionaryRef properties)
17 {
18 }
19 void Open();
20 bool InitDevice(int vid, int pid) { return vid == 0x0d2f && pid == 0x0001; }
21
22 public:
23 void GetButtonPresses(
24 std::vector<DeviceInput>& vPresses,
25 IOHIDElementCookie cookie,
26 int value,
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;
30};
31
32#endif
Definition HIDDevice.h:70
Definition PumpDevice.h:7