23 #if SDL_VIDEO_DRIVER_BWINDOW
25 #include <SupportDefs.h>
26 #include <support/UTF8.h>
38 #define KEYMAP_SIZE 128
42 static int8 keystate[KEYMAP_SIZE];
49 for(
uint i = 0;
i < KEYMAP_SIZE; ++
i ) {
171 if(bkey > 0 && bkey < KEYMAP_SIZE) {
172 return keystate[bkey];
179 if(bkey > 0 && bkey < KEYMAP_SIZE) {
180 keystate[bkey] = state;
void BE_SetKeyState(int32 bkey, int8 state)
DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromKey(SDL_Keycode key)
Get the scancode corresponding to the given key code according to the current keyboard layout...
SDL_Scancode BE_GetScancodeFromBeKey(int32 bkey)
int8 BE_GetKeyState(int32 bkey)
#define SDL_TABLESIZE(table)
SDL_Scancode
The SDL keyboard scancode representation.