src/video/ataricommon/SDL_biosevents.c
changeset 2019 d20f4510c718
parent 1895 c121d94672cb
child 2030 d774e9d7c2a8
equal deleted inserted replaced
2018:41a5fc1825b9 2019:d20f4510c718
    74 
    74 
    75     SDL_memset(bios_currentkeyboard, 0, sizeof(bios_currentkeyboard));
    75     SDL_memset(bios_currentkeyboard, 0, sizeof(bios_currentkeyboard));
    76     SDL_memset(bios_previouskeyboard, 0, sizeof(bios_previouskeyboard));
    76     SDL_memset(bios_previouskeyboard, 0, sizeof(bios_previouskeyboard));
    77 
    77 
    78     /* Initialize keymap */
    78     /* Initialize keymap */
    79     for (i = 0; i < sizeof(keymap); i++)
    79     for (i = 0; i < ATARIBIOS_MAXKEYS; i++)
    80         keymap[i] = SDLK_UNKNOWN;
    80         keymap[i] = SDLK_UNKNOWN;
    81 
    81 
    82     /* Functions keys */
    82     /* Functions keys */
    83     for (i = 0; i < 10; i++)
    83     for (i = 0; i < 10; i++)
    84         keymap[SCANCODE_F1 + i] = SDLK_F1 + i;
    84         keymap[SCANCODE_F1 + i] = SDLK_F1 + i;