src/video/gem/SDL_gemevents.c
changeset 2019 d20f4510c718
parent 1895 c121d94672cb
child 2030 d774e9d7c2a8
equal deleted inserted replaced
2018:41a5fc1825b9 2019:d20f4510c718
    93     SDL_memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard));
    93     SDL_memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard));
    94     SDL_memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard));
    94     SDL_memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard));
    95     SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii));
    95     SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii));
    96 
    96 
    97     /* Initialize keymap */
    97     /* Initialize keymap */
    98     for (i = 0; i < sizeof(keymap); i++)
    98     for (i = 0; i < ATARIBIOS_MAXKEYS; i++)
    99         keymap[i] = SDLK_UNKNOWN;
    99         keymap[i] = SDLK_UNKNOWN;
   100 
   100 
   101     /* Functions keys */
   101     /* Functions keys */
   102     for (i = 0; i < 10; i++)
   102     for (i = 0; i < 10; i++)
   103         keymap[SCANCODE_F1 + i] = SDLK_F1 + i;
   103         keymap[SCANCODE_F1 + i] = SDLK_F1 + i;