equal
deleted
inserted
replaced
22 }; |
22 }; |
23 |
23 |
24 class HIDDevice { |
24 class HIDDevice { |
25 private: |
25 private: |
26 hid_device* handle; |
26 hid_device* handle; |
|
27 |
|
28 HIDDevice(const HIDDevice& other) : handle(other.handle) { |
|
29 } |
|
30 |
27 public: |
31 public: |
28 |
32 |
29 HIDDevice(unsigned short vendorId, unsigned short productId, const wchar_t *serialNumber) { |
33 HIDDevice(unsigned short vendorId, unsigned short productId, const wchar_t *serialNumber) { |
30 int initError = hid_init(); // TODO: move to HIDContext class? |
34 int initError = hid_init(); // TODO: move to HIDContext class? |
31 if (initError) throw HIDException(L"Unable to init HID API."); |
35 if (initError) throw HIDException(L"Unable to init HID API."); |