Frame diff algo now working nicely and providing twice the frame rate.
11 const int KMaxHidStringChar=256;
14 TODO: move to another header
20 int Open(const char* aPath);
21 int Open(unsigned short aVendorId, unsigned short aProductId, const wchar_t* aSerialNumber);
25 int SetNonBlocking(int aNonBlocking);
28 int Read(HidReport<S>& aInputReport);
31 int Write(const HidReport<S>& aOutputReport);
33 const wchar_t* Error();
37 wchar_t* SerialNumber();
44 hid_device* iHidDevice;
46 wchar_t iVendor[KMaxHidStringChar];
47 wchar_t iProduct[KMaxHidStringChar];
48 wchar_t iSerialNumber[KMaxHidStringChar];
55 int HidDevice::Write(const HidReport<S>& aOutputReport)
57 return hid_write(iHidDevice,aOutputReport.Buffer(),S);
63 int HidDevice::Read(HidReport<S>& aInputReport)
65 return hid_read(iHidDevice,aInputReport.Buffer(),S);