.hgignore
author Sam Lantinga <slouken@libsdl.org>
Wed, 03 Oct 2012 20:49:16 -0700
changeset 6555 f2c03c06d987
parent 6517 4a4031308518
child 6658 1f867cd3e2aa
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.
icculus@4418
     1
syntax:glob
slouken@6328
     2
.svn
icculus@4418
     3
autom4te*
icculus@4418
     4
config.cache
icculus@4418
     5
config.log
icculus@4418
     6
config.status
icculus@4418
     7
Makefile
icculus@4418
     8
sdl-config
slouken@6250
     9
SDL2.spec
icculus@4418
    10
build
slouken@5318
    11
ewing@4466
    12
# for Xcode
ewing@4466
    13
*.orig
ewing@4466
    14
*.swp
ewing@4466
    15
*.tmp
ewing@4466
    16
*.rej
ewing@4466
    17
*~
ewing@4466
    18
*.o
ewing@4466
    19
*.mode1*
ewing@4466
    20
*.model*
ewing@4466
    21
*.perspective*
ewing@4466
    22
*.perspective*
ewing@4466
    23
*.pbxuser
ewing@4466
    24
(^|/)build($|/)
icculus@4418
    25
.DS_Store
slouken@5318
    26
slouken@5318
    27
# for Visual C++
slouken@5318
    28
Debug
slouken@5318
    29
Release
slouken@5318
    30
*.user
slouken@5318
    31
*.ncb
slouken@5318
    32
*.suo
slouken@5318
    33
icculus@4418
    34
sdl.pc
icculus@4418
    35
test/autom4te*
icculus@4418
    36
test/config.cache
icculus@4418
    37
test/config.log
icculus@4418
    38
test/config.status
icculus@4418
    39
test/Makefile
slouken@6250
    40
test/SDL2.dll
icculus@4418
    41
test/checkkeys
icculus@4418
    42
test/loopwave
slouken@4862
    43
test/testatomic
slouken@4862
    44
test/testaudioinfo
slouken@4862
    45
test/testdraw2
icculus@4418
    46
test/testerror
icculus@4418
    47
test/testfile
slouken@4862
    48
test/testgesture
slouken@4862
    49
test/testgl2
slouken@4862
    50
test/testgles
slouken@4862
    51
test/testhaptic
icculus@4418
    52
test/testiconv
slouken@4862
    53
test/testime
slouken@4862
    54
test/testintersections
icculus@4418
    55
test/testjoystick
icculus@4418
    56
test/testkeys
slouken@4862
    57
test/testloadso
icculus@4418
    58
test/testlock
slouken@4862
    59
test/testmultiaudio
slouken@6286
    60
test/testnative
icculus@4418
    61
test/testoverlay2
icculus@4418
    62
test/testplatform
slouken@4862
    63
test/testpower
slouken@6517
    64
test/testrelative
slouken@6517
    65
test/testrendercopyex
slouken@6286
    66
test/testrendertarget
slouken@4862
    67
test/testresample
slouken@5453
    68
test/testrumble
slouken@5318
    69
test/testscale
icculus@4418
    70
test/testsem
slouken@5318
    71
test/testshader
slouken@5318
    72
test/testshape
slouken@4862
    73
test/testsprite2
slouken@4862
    74
test/testspriteminimal
slouken@5318
    75
test/teststreaming
slouken@6286
    76
test/testthread
icculus@4418
    77
test/testtimer
icculus@4418
    78
test/testver
slouken@4862
    79
test/testwm2
icculus@4418
    80
test/torturethread
icculus@4418
    81
test/*.exe
icculus@4418
    82
test/*.dSYM