comparison src/video/ataricommon/SDL_gemdosevents.c @ 3854:f1816773a309 SDL-1.2

/me dumb, sizeof(keymap) != number of elements
author Patrice Mandin <patmandin@gmail.com>
date Thu, 07 Sep 2006 20:52:31 +0000
parents 2405517b5eab
children bf1586b58ef2
comparison
equal deleted inserted replaced
3853:c6d3c5549886 3854:f1816773a309
77 77
78 SDL_memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard)); 78 SDL_memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard));
79 SDL_memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard)); 79 SDL_memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard));
80 80
81 /* Initialize keymap */ 81 /* Initialize keymap */
82 for ( i=0; i<sizeof(keymap); i++ ) 82 for ( i=0; i<ATARIBIOS_MAXKEYS; i++ )
83 keymap[i] = SDLK_UNKNOWN; 83 keymap[i] = SDLK_UNKNOWN;
84 84
85 /* Functions keys */ 85 /* Functions keys */
86 for ( i = 0; i<10; i++ ) 86 for ( i = 0; i<10; i++ )
87 keymap[SCANCODE_F1 + i] = SDLK_F1+i; 87 keymap[SCANCODE_F1 + i] = SDLK_F1+i;