21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_HAIKU 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)
#define SDL_GetScancodeFromKey
#define SDL_TABLESIZE(table)
SDL_Scancode BE_GetScancodeFromBeKey(int32 bkey)
int8 BE_GetKeyState(int32 bkey)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
void BE_InitOSKeymap(void)
SDL_Scancode
The SDL keyboard scancode representation.