Go to the documentation of this file.
21 #include "../../SDL_internal.h"
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"
326 TranslateKeycode(
int keycode)
331 scancode = Android_Keycodes[keycode];
334 __android_log_print(ANDROID_LOG_INFO,
"SDL",
"Unknown keycode %d", keycode);
@ SDL_SCANCODE_AC_FORWARD
@ SDL_SCANCODE_PRINTSCREEN
@ SDL_SCANCODE_BRIGHTNESSDOWN
void Android_InitKeyboard(void)
@ SDL_SCANCODE_INTERNATIONAL3
void SDL_GetDefaultKeymap(SDL_Keycode *keymap)
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl endif endm macro pixld_s_internal mem_operand if mem_operand pixld2_s mem_operand pixdeinterleave basereg elseif mem_operand elseif mem_operand elseif mem_operand elseif mem_operand pixld0_s mem_operand else pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else error unsupported mem_operand if bpp mem_operand endif endm macro vuzp8 reg2 vuzp d d ®2 endm macro vzip8 reg2 vzip d d ®2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld if[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro fetch_mask_pixblock pixld mask_basereg pixblock_size MASK endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1(dst_w_bpp<=(lowbit *8)) &&((lowbit *8)<(pixblock_size *dst_w_bpp)) .if lowbit< 16 tst DST_R
@ SDL_SCANCODE_SCROLLLOCK
@ SDL_SCANCODE_VOLUMEDOWN
@ SDL_SCANCODE_AUDIOREWIND
SDL_Scancode
The SDL keyboard scancode representation.
#define SDL_InvalidParamError(param)
@ SDL_SCANCODE_KP_LEFTPAREN
Sint32 SDL_Keycode
The SDL virtual key representation.
int SDL_SendKeyboardKey(Uint8 state, SDL_Scancode scancode)
@ SDL_SCANCODE_KP_RIGHTPAREN
The type used to identify a window.
@ SDL_SCANCODE_CALCULATOR
int Android_OnKeyDown(int keycode)
@ SDL_SCANCODE_RIGHTBRACKET
@ SDL_SCANCODE_KP_MULTIPLY
static SDL_VideoDevice * _this
EGLSurface EGLNativeWindowType * window
void Android_SetTextInputRect(_THIS, SDL_Rect *rect)
SDL_bool Android_HasScreenKeyboardSupport(_THIS)
void Android_StopTextInput(_THIS)
void SDL_SetKeymap(int start, SDL_Keycode *keys, int length)
void Android_JNI_ShowTextInput(SDL_Rect *inputRect)
@ SDL_SCANCODE_LEFTBRACKET
#define SDL_arraysize(array)
@ SDL_SCANCODE_INTERNATIONAL5
@ SDL_SCANCODE_INTERNATIONAL4
@ SDL_SCANCODE_AUDIOFASTFORWARD
A rectangle, with the origin at the upper left (integer).
int Android_OnKeyUp(int keycode)
void Android_JNI_HideTextInput(void)
@ SDL_SCANCODE_APOSTROPHE
@ SDL_SCANCODE_BRIGHTNESSUP
void Android_StartTextInput(_THIS)
SDL_bool Android_JNI_IsScreenKeyboardShown(void)
SDL_bool Android_IsScreenKeyboardShown(_THIS, SDL_Window *window)
@ SDL_SCANCODE_AC_BOOKMARKS