Vitaliy Margolen : dinput: Ignore repeated key events.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 17 07:00:19 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 13ce1a4543872d585fff6d59e079f0810f039e7b
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=13ce1a4543872d585fff6d59e079f0810f039e7b
Author: Vitaliy Margolen <wine-patch at kievinfo.com>
Date: Sun Jul 16 12:59:51 2006 -0600
dinput: Ignore repeated key events.
---
dlls/dinput/keyboard.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/dinput/keyboard.c b/dlls/dinput/keyboard.c
index 9640db9..d9a8c43 100644
--- a/dlls/dinput/keyboard.c
+++ b/dlls/dinput/keyboard.c
@@ -97,7 +97,8 @@ LRESULT CALLBACK KeyboardCallback( int c
/** 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]);
More information about the wine-cvs
mailing list