comparison src/video/win32/SDL_win32events.c @ 2312:bcec4b189f5b

Updated Visual C++ project
author Sam Lantinga <slouken@libsdl.org>
date Sun, 10 Feb 2008 05:14:28 +0000
parents 54e21acfec5a
children 012ec5192dfa
comparison
equal deleted inserted replaced
2311:54e21acfec5a 2312:bcec4b189f5b
52 { 52 {
53 /* Windows remaps alphabetic keys based on current layout. 53 /* Windows remaps alphabetic keys based on current layout.
54 We try to provide USB scancodes, so undo this mapping. 54 We try to provide USB scancodes, so undo this mapping.
55 */ 55 */
56 if (wParam >= 'A' && wParam <= 'Z') { 56 if (wParam >= 'A' && wParam <= 'Z') {
57 BYTE scancode = (lParam >> 16) & 0xFF; 57 BYTE scancode = (BYTE)((lParam >> 16) & 0xFF);
58 int i; 58 int i;
59 59
60 if (scancode != alpha_scancodes[wParam - 'A']) { 60 if (scancode != alpha_scancodes[wParam - 'A']) {
61 for (i = 0; i < SDL_arraysize(alpha_scancodes); ++i) { 61 for (i = 0; i < SDL_arraysize(alpha_scancodes); ++i) {
62 if (scancode == alpha_scancodes[i]) { 62 if (scancode == alpha_scancodes[i]) {