dinput: Ignore repeated key events.

This commit is contained in:
Vitaliy Margolen 2006-07-16 12:59:51 -06:00 committed by Alexandre Julliard
parent 5702a310e9
commit 13ce1a4543
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ LRESULT CALLBACK KeyboardCallback( int code, WPARAM wparam, LPARAM lparam )
/** returns now if key event already known */
new_diks = (down ? 0x80 : 0);
/*if (new_diks != DInputKeyState[dik_code]) return CallNextHookEx(keyboard_hook, code, wparam, lparam); TO BE FIXED */
if (new_diks == DInputKeyState[dik_code])
return CallNextHookEx(0, code, wparam, lparam);
DInputKeyState[dik_code] = new_diks;
TRACE(" setting %02X to %02X\n", dik_code, DInputKeyState[dik_code]);