Android soft keyboard fails to pass all input (with patch)

Hey guys,

I’m using the Android port and noticed that many keys from the software
keyboard are not passed through SDL’s text input API. Among other keys,
none of the numerical keys work. I’ve seen the same on a device and
emulator. Here’s a patch (attached) that passes on the needed data from
the SDLInputConnection::sendKeyEvent callback.

Jonny D
-------------- next part --------------
A non-text attachment was scrubbed…
Name: android_softinput_patch.diff
Type: application/octet-stream
Size: 676 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130122/20e4ef47/attachment.obj

2013/1/22 Jonathan Dearborn

Hey guys,

I’m using the Android port and noticed that many keys from the software
keyboard are not passed through SDL’s text input API. Among other keys,
none of the numerical keys work. I’ve seen the same on a device and
emulator. Here’s a patch (attached) that passes on the needed data from
the SDLInputConnection::sendKeyEvent callback.

Jonny D


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I can test and incorporate these sort of fixes quickly but I usually do
that on weekends or when I find myself with no paying work :slight_smile: It helps if
you file a bug with the patch, so it doesn’t get lost.

Thanks!–
Gabriel.

No problem, though the bugzilla server is pretty flaky.

http://bugzilla.libsdl.org/show_bug.cgi?id=1702

Jonny DOn Tue, Jan 22, 2013 at 12:20 PM, Gabriel Jacobo wrote:

2013/1/22 Jonathan Dearborn <@Jonathan_Dearborn>

Hey guys,

I’m using the Android port and noticed that many keys from the software
keyboard are not passed through SDL’s text input API. Among other keys,
none of the numerical keys work. I’ve seen the same on a device and
emulator. Here’s a patch (attached) that passes on the needed data from
the SDLInputConnection::sendKeyEvent callback.

Jonny D


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I can test and incorporate these sort of fixes quickly but I usually do
that on weekends or when I find myself with no paying work :slight_smile: It helps if
you file a bug with the patch, so it doesn’t get lost.

Thanks!


Gabriel.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org