23 #if SDL_VIDEO_DRIVER_ANDROID
25 #include <android/log.h>
27 #include "../../events/SDL_events_c.h"
31 #include "../../core/android/SDL_android.h"
268 TranslateKeycode(
int keycode)
273 scancode = Android_Keycodes[keycode];
276 __android_log_print(ANDROID_LOG_INFO,
"SDL",
"Unknown keycode %d", keycode);
void SDL_GetDefaultKeymap(SDL_Keycode *keymap)
int Android_OnKeyUp(int keycode)
void Android_JNI_ShowTextInput(SDL_Rect *inputRect)
SDL_bool Android_HasScreenKeyboardSupport(_THIS)
int Android_OnKeyDown(int keycode)
void Android_JNI_HideTextInput()
#define SDL_InvalidParamError(param)
void Android_InitKeyboard(void)
Sint32 SDL_Keycode
The SDL virtual key representation.
int SDL_SendKeyboardKey(Uint8 state, SDL_Scancode scancode)
static SDL_VideoDevice * _this
void SDL_SetKeymap(int start, SDL_Keycode *keys, int length)
void Android_StartTextInput(_THIS)
void Android_SetTextInputRect(_THIS, SDL_Rect *rect)
#define SDL_arraysize(array)
DECLSPEC SDL_bool SDLCALL SDL_IsTextInputActive(void)
Return whether or not Unicode text input events are enabled.
void Android_StopTextInput(_THIS)
SDL_bool Android_IsScreenKeyboardShown(_THIS, SDL_Window *window)
SDL_Scancode
The SDL keyboard scancode representation.
A rectangle, with the origin at the upper left.