SDL-mirror/android-project
Sam Lantinga e6c0215444 Fixed bug 1614 - SDL for Android does not implement TextInput API
Andrey Isakov 2012-10-03 08:30:25 PDT

I've found out in the process of porting one OS project to Android/SDL2 that
there is no support for TextInput events/APIs on Android.
So I implemented some kind of initial support of that feature, and at the very
least it seems to work fine with latin chars input with soft and hardware
keyboards on my Moto Milestone2. I've also tried playing around with more
complex IMEs, like japanese, logging the process and it seemed to work too. I'm
not sure since the app itself I am working on does not have support for
non-latin input.

The main point of the patch is to place a fake input view in the region
specified by SDL_SetTextInputRect and create a custom InputConnection for it.
The reason to make it a separate view is to support Android's pan&scan on input
feature properly. For details please refer to
http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html
Even though the manual states that SetTextInputRect is used to determine the
IME variants position, I thought this would be a proper use for this too.
2012-10-03 20:49:16 -07:00
..
jni Quick android Makefile fix from Gabriel Jacobo 2012-02-14 20:54:44 -05:00
res
src/org/libsdl/app Fixed bug 1614 - SDL for Android does not implement TextInput API 2012-10-03 20:49:16 -07:00
AndroidManifest.xml Fixed bug 1564 - SDL has no function to open a screen keyboard on Android. 2012-08-11 10:15:59 -07:00
build.properties
build.xml
default.properties Bumped default Android API target to 5 (Android 2.0, up from 1.6). 2011-10-15 14:25:00 -07:00
local.properties