comparison src/video/win32/SDL_win32keyboard.c @ 4561:e4b2b7207f79

Fixed remapping the Delete key and detecting the keypad Delete key.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 20 Jul 2010 23:59:16 -0700
parents 3e69e077cb95
children 518d1679d2d0
comparison
equal deleted inserted replaced
4560:95352c671a6e 4561:e4b2b7207f79
99 99
100 for (i = 0; i < SDL_arraysize(win32_scancode_table); i++) { 100 for (i = 0; i < SDL_arraysize(win32_scancode_table); i++) {
101 101
102 /* Make sure this scancode is a valid character scancode */ 102 /* Make sure this scancode is a valid character scancode */
103 scancode = win32_scancode_table[i]; 103 scancode = win32_scancode_table[i];
104 if (scancode == SDL_SCANCODE_UNKNOWN || 104 if (scancode == SDL_SCANCODE_UNKNOWN || keymap[scancode] >= 127) {
105 (keymap[scancode] & SDLK_SCANCODE_MASK)) {
106 continue; 105 continue;
107 } 106 }
108 107
109 /* Alphabetic keys are handled specially, since Windows remaps them */ 108 /* Alphabetic keys are handled specially, since Windows remaps them */
110 if (i >= 'A' && i <= 'Z') { 109 if (i >= 'A' && i <= 'Z') {