src/video/ataricommon/SDL_ikbdevents.c
changeset 2019 d20f4510c718
parent 1895 c121d94672cb
child 2030 d774e9d7c2a8
equal deleted inserted replaced
2018:41a5fc1825b9 2019:d20f4510c718
    80     int i;
    80     int i;
    81 
    81 
    82     SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED, ATARIBIOS_MAXKEYS);
    82     SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED, ATARIBIOS_MAXKEYS);
    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;