From 866ce3c387c62de73dcafa4f3492a8ae484e30e6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 25 Jan 2006 07:00:40 +0000 Subject: [PATCH] Date: Sun, 21 Sep 2003 19:52:42 -0600 From: Tyler Montbriand Subject: Re: [SDL] Hardware buttons on pocket pc I found it! :) It has to do with the UNICODE translation code, in SDL_dibevents.c, in the '#ifdef NO_GETKEYBOARDSTATE' block in DIB_HandleMessage(). The error handling is a little... aggressive. If it can't translate from unicode, it wipes out the virtual keycode. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401267 --- src/video/windib/SDL_dibevents.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/video/windib/SDL_dibevents.c b/src/video/windib/SDL_dibevents.c index 74b568ab3..29fe2df3f 100644 --- a/src/video/windib/SDL_dibevents.c +++ b/src/video/windib/SDL_dibevents.c @@ -147,8 +147,6 @@ LONG if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) { GetMessage(&m, hwnd, 0, WM_USER); wParam = m.wParam; - } else { - wParam = 0; } } #endif /* NO_GETKEYBOARDSTATE */