README.Platforms
author Sam Lantinga <slouken@libsdl.org>
Wed, 03 Oct 2012 20:49:16 -0700
changeset 6555 f2c03c06d987
parent 5372 a244ea780baa
child 6631 47ab7ba21530
permissions -rw-r--r--
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.
slouken@5104
     1
slouken@5104
     2
This is a list of the platforms SDL supports, and who maintains them.
slouken@5104
     3
slouken@5104
     4
Officially supported platforms
slouken@5104
     5
==============================
slouken@5104
     6
(code compiles, and thoroughly tested for release)
slouken@5104
     7
==============================
slouken@5104
     8
Windows XP
slouken@5104
     9
Windows Vista
slouken@5104
    10
Windows 7
slouken@5104
    11
Mac OS X 10.4+
slouken@5104
    12
Linux 2.6+
slouken@5372
    13
iOS 3.1.3+
slouken@5104
    14
Android 1.6+
slouken@5104
    15
slouken@5104
    16
Unofficially supported platforms
slouken@5104
    17
================================
slouken@5104
    18
(code compiles, but not thoroughly tested)
slouken@5104
    19
================================
slouken@5104
    20
Windows CE
slouken@5104
    21
FreeBSD
slouken@5104
    22
NetBSD
slouken@5104
    23
OpenBSD
slouken@5104
    24
Solaris
slouken@5104
    25
slouken@5104
    26
Platforms supported by volunteers
slouken@5104
    27
=================================
slouken@5109
    28
Pandora - maintained by Scott Smith <pickle136@sbcglobal.net>
slouken@5104
    29
slouken@5104
    30
Platforms that need maintainers
slouken@5104
    31
===============================
slouken@5104
    32
Nintendo DS
slouken@5104
    33
Haiku