src/video/win32/SDL_win32keyboard.c
changeset 4561 e4b2b7207f79
parent 4465 3e69e077cb95
child 4763 518d1679d2d0
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') {