comparison src/video/gem/SDL_gemevents.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
93 SDL_memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard)); 93 SDL_memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard));
94 SDL_memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard)); 94 SDL_memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard));
95 SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii)); 95 SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii));
96 96
97 /* Initialize keymap */ 97 /* Initialize keymap */
98 for (i = 0; i < sizeof(keymap); i++) 98 for (i = 0; i < ATARIBIOS_MAXKEYS; i++)
99 keymap[i] = SDLK_UNKNOWN; 99 keymap[i] = SDLK_UNKNOWN;
100 100
101 /* Functions keys */ 101 /* Functions keys */
102 for (i = 0; i < 10; i++) 102 for (i = 0; i < 10; i++)
103 keymap[SCANCODE_F1 + i] = SDLK_F1 + i; 103 keymap[SCANCODE_F1 + i] = SDLK_F1 + i;