The following function is called whenever keypress event occurs:
static LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) {
printf("Key is pressed !\n");
// If key pressed down,call function A
// If key released , call function B
}
How do I detect these events ?
The key pressed could be any key from a window keyboard.I just want to know whether a key was pressed or was released after pressing. How do I do this ?
1 Answer