search for: resynckeyst

Displaying 1 result from an estimated 1 matches for "resynckeyst".

2009 Aug 06
1
WH_KEYBOARD_LL vs GetKeyState
...ases where any app may be looping looking at GetKeyState(), plus > * calling PeekMessage(). Key state events don't get created unless > * new hardware input comes along. If the app isn't receiving hardware > * input, it won't get the new key state. So ResyncKeyState() will > * ensure that if the app is looping on GetKeyState(), it'll get the > * right key state. > */ Code: #include <windows.h> #include <cstdio> LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) { if(nC...