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
42static 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;
int8 HAIKU_GetKeyState(int32 bkey)
void HAIKU_InitOSKeymap(void)
void HAIKU_SetKeyState(int32 bkey, int8 state)
SDL_Scancode HAIKU_GetScancodeFromBeKey(int32 bkey)
#define SDL_GetScancodeFromKey
SDL_Scancode
The SDL keyboard scancode representation.
#define SDL_TABLESIZE(table)
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)