Skip to content

Commit

Permalink
Date: Sun, 21 Sep 2003 19:52:42 -0600
Browse files Browse the repository at this point in the history
From: Tyler Montbriand <tsm@accesscomm.ca>
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.
  • Loading branch information
slouken committed Jan 25, 2006
1 parent bafbf67 commit 93bbe13
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/video/windib/SDL_dibevents.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 93bbe13

Please sign in to comment.