Added new API for toggling text input via Android EditText widget

This commit is contained in:
pelya
2011-02-24 16:21:54 +00:00
parent 4de240dc27
commit 99f734c61c
17 changed files with 174 additions and 40 deletions

View File

@@ -0,0 +1,26 @@
diff -ru orig/vice-2.3/src/arch/sdl/uimenu.c vice-2.3/src/arch/sdl/uimenu.c
--- orig/vice-2.3/src/arch/sdl/uimenu.c 2011-02-19 11:33:41.000000000 -0500
+++ vice-2.3/src/arch/sdl/uimenu.c 2011-02-23 09:56:42.000000000 -0500
@@ -750,8 +750,9 @@
if (vsid_mode && (sdl_vsid_state & SDL_VSID_ACTIVE)) {
sdl_vsid_close();
}
-
+#ifndef ANDROID
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
+#endif
sdl_menu_state = 1;
ui_check_mouse_cursor();
}
@@ -762,8 +763,9 @@
sdl_menu_state = 0;
ui_check_mouse_cursor();
+#ifndef ANDROID
SDL_EnableKeyRepeat(0, 0);
-
+#endif
/* Do not resume sound if in warp mode */
resources_get_int("WarpMode", &warp_state);
if (warp_state == 0) {