src/video/win32/SDL_win32keyboard.c
changeset 4465 3e69e077cb95
parent 3697 f7b03b6838cb
child 4561 e4b2b7207f79
child 4747 5284a3b3217a
     1.1 --- a/src/video/win32/SDL_win32keyboard.c	Sun May 09 19:55:28 2010 -0700
     1.2 +++ b/src/video/win32/SDL_win32keyboard.c	Sun May 09 20:47:22 2010 -0700
     1.3 @@ -50,7 +50,6 @@
     1.4  WIN_InitKeyboard(_THIS)
     1.5  {
     1.6      SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
     1.7 -    SDL_Keyboard keyboard;
     1.8      int i;
     1.9  
    1.10      /* Make sure the alpha scancodes are correct.  T isn't usually remapped */
    1.11 @@ -82,9 +81,7 @@
    1.12  
    1.13      data->key_layout = win32_scancode_table;
    1.14  
    1.15 -    SDL_zero(keyboard);
    1.16 -    data->keyboard = SDL_AddKeyboard(&keyboard, -1);
    1.17 -    WIN_UpdateKeymap(data->keyboard);
    1.18 +    WIN_UpdateKeymap();
    1.19  
    1.20      SDL_SetScancodeName(SDL_SCANCODE_APPLICATION, "Menu");
    1.21      SDL_SetScancodeName(SDL_SCANCODE_LGUI, "Left Windows");
    1.22 @@ -92,7 +89,7 @@
    1.23  }
    1.24  
    1.25  void
    1.26 -WIN_UpdateKeymap(int keyboard)
    1.27 +WIN_UpdateKeymap()
    1.28  {
    1.29      int i;
    1.30      SDL_scancode scancode;
    1.31 @@ -117,15 +114,12 @@
    1.32              keymap[scancode] = (MapVirtualKey(i, MAPVK_VK_TO_CHAR) & 0x7FFF);
    1.33          }
    1.34      }
    1.35 -    SDL_SetKeymap(keyboard, 0, keymap, SDL_NUM_SCANCODES);
    1.36 +    SDL_SetKeymap(0, keymap, SDL_NUM_SCANCODES);
    1.37  }
    1.38  
    1.39  void
    1.40  WIN_QuitKeyboard(_THIS)
    1.41  {
    1.42 -    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
    1.43 -
    1.44 -    SDL_DelKeyboard(data->keyboard);
    1.45  }
    1.46  
    1.47  /* vi: set ts=4 sw=4 expandtab: */