#include <iostream>
#include "CadMouseConfig.h"
#include "HID.h"
int main(int argc, char** argv) {
try {
std::wcout << L"cadMousePro" << std::endl;
HIDDevice mouse(0x256f, 0xc652, nullptr);
std::wcout << L"mouse opened" << std::endl;
std::wcout << L"manufacturer: " << mouse.getManufacturerName() << std::endl;
std::wcout << L"product: " << mouse.getProductName() << std::endl;
// std::wcout << L"serial number: " << mouse.getSerialNumber() << std::endl; // throws exception
CadMouseConfig config;
mouse.sendFeatureReport(config.serialize());
return 0;
} catch (const HIDException& e) {
std::wcout << L"HIDException: " << e.getMessage() << std::endl;
return 1;
}
}