fix(detect): add missing case that prevented some keys from being detected correctly on Windows. Fix #307
This commit is contained in:
parent
cba4c41006
commit
12ba0b8755
|
@ -116,7 +116,7 @@ LRESULT CALLBACK detect_window_procedure(HWND window, unsigned int msg, WPARAM w
|
|||
{
|
||||
// We only want KEY UP AND KEY DOWN events
|
||||
if (raw->data.keyboard.Message != WM_KEYDOWN && raw->data.keyboard.Message != WM_KEYUP &&
|
||||
raw->data.keyboard.Message != WM_SYSKEYDOWN)
|
||||
raw->data.keyboard.Message != WM_SYSKEYDOWN && raw->data.keyboard.Message != WM_SYSKEYUP)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user