Mercurial > sdl-ios-xcode
comparison src/events/SDL_keyboard_c.h @ 2307:47f8a579cd9b
Fixed array overrun
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 07 Feb 2008 16:14:43 +0000 |
parents | d87417504c75 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2306:1a8bab15a45d | 2307:47f8a579cd9b |
---|---|
35 void (*FreeKeyboard) (SDL_Keyboard * keyboard); | 35 void (*FreeKeyboard) (SDL_Keyboard * keyboard); |
36 | 36 |
37 /* Data common to all keyboards */ | 37 /* Data common to all keyboards */ |
38 SDL_WindowID focus; | 38 SDL_WindowID focus; |
39 Uint16 modstate; | 39 Uint16 modstate; |
40 Uint8 keystate[(SDL_NUM_SCANCODES + 7) / 8]; | 40 Uint8 keystate[SDL_NUM_SCANCODES]; |
41 SDLKey keymap[SDL_NUM_SCANCODES]; | 41 SDLKey keymap[SDL_NUM_SCANCODES]; |
42 | 42 |
43 void *driverdata; | 43 void *driverdata; |
44 }; | 44 }; |
45 | 45 |