src/cadMousePro.cpp
branchv_0
changeset 2 abeba77ec581
parent 1 29cbe171cd43
child 3 1197b42e8b2e
equal deleted inserted replaced
1:29cbe171cd43 2:abeba77ec581
    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.");