Change trigger event on Windows to KEY_DOWN
This commit is contained in:
parent
077bf76887
commit
ce45cd1ca1
|
@ -204,8 +204,8 @@ LRESULT CALLBACK window_procedure(HWND window, unsigned int msg, WPARAM wp, LPAR
|
|||
// Convert the input data
|
||||
RAWINPUT* raw = reinterpret_cast<RAWINPUT*>(lpb.data());
|
||||
|
||||
// Make sure it's a keyboard type event, relative to a key release.
|
||||
if (raw->header.dwType == RIM_TYPEKEYBOARD && raw->data.keyboard.Message == WM_KEYUP)
|
||||
// Make sure it's a keyboard type event, relative to a key press.
|
||||
if (raw->header.dwType == RIM_TYPEKEYBOARD && raw->data.keyboard.Message == WM_KEYDOWN)
|
||||
{
|
||||
DWORD currentTick = GetTickCount();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user