comparison src/video/ataricommon/SDL_ikbdevents.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 d910939febfa
children bf1586b58ef2
comparison
equal deleted inserted replaced
3853:c6d3c5549886 3854:f1816773a309
77 int i; 77 int i;
78 78
79 SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED, ATARIBIOS_MAXKEYS); 79 SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED, ATARIBIOS_MAXKEYS);
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;