Comment by nly
6 months ago
Windows maintains both a synchronous and asynchronous key state. The async one gives the result of the state of keys in a polled fashion, and the other the state as applied by messages as you pump the the Win32 message queue (it's in sync with respect to messages you have observed from the message queue)
https://devblogs.microsoft.com/oldnewthing/20041130-00/?p=37...
No comments yet
Contribute on Hacker News ↗