Hi,
I'm writing the Host application that will talk to a custom HID Keyboard. Though, this keyboard identifies itself to Windows as an HID, not Keyboard (so I think we can use HID API). Keystrokes are sent as Input Reports.
This may be a trivial question, but I'm not sure what is the best way to being kept notified of keystrokes without delay or performance impact (it's normal to have multiple keys in the order of milliseconds). Microsoft suggests that user mode applications should use ReadFile. So should I just have a separate thread that has an infinite loop calling ReadFile (overlapped read) and WaitForSingleObject then notify the main thread?
Best Regards,