comparison src/video/ataricommon/SDL_ikbdevents.c @ 2019:d20f4510c718

/me dumb, sizeof(keymap != number of elements
author Patrice Mandin <patmandin@gmail.com>
date Thu, 07 Sep 2006 20:50:13 +0000
parents c121d94672cb
children d774e9d7c2a8
comparison
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;