src/video/ataricommon/SDL_gemdosevents.c
changeset 2019 d20f4510c718
parent 1895 c121d94672cb
child 2030 d774e9d7c2a8
equal deleted inserted replaced
2018:41a5fc1825b9 2019:d20f4510c718
    80 
    80 
    81     SDL_memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard));
    81     SDL_memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard));
    82     SDL_memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard));
    82     SDL_memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard));
    83 
    83 
    84     /* Initialize keymap */
    84     /* Initialize keymap */
    85     for (i = 0; i < sizeof(keymap); i++)
    85     for (i = 0; i < ATARIBIOS_MAXKEYS; i++)
    86         keymap[i] = SDLK_UNKNOWN;
    86         keymap[i] = SDLK_UNKNOWN;
    87 
    87 
    88     /* Functions keys */
    88     /* Functions keys */
    89     for (i = 0; i < 10; i++)
    89     for (i = 0; i < 10; i++)
    90         keymap[SCANCODE_F1 + i] = SDLK_F1 + i;
    90         keymap[SCANCODE_F1 + i] = SDLK_F1 + i;