The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Android Physical arrow keys not generating keyboard events
AntTheAlchemist


Joined: 13 Feb 2015
Posts: 60
Location: UK
Has anyone tried a physical keyboard on the Android platform yet? I've got various Android TV dongles and a phone with a slide out keyboard. They all generate key events as expected with exception of the arrow keys, which generate no events, or SDL_GetKeyboardState.

Any idea if this is a bug, or are the arrow keys special on Android?

SDL2.0.3
Bump
AntTheAlchemist


Joined: 13 Feb 2015
Posts: 60
Location: UK
I'm still stuck on this problem. Surely I'm not the only one with a physical keyboard on Android? Is anyone able to use the arrow keys in SDL2 android?

I'm a commercial indie games developer and am keen to get this working :-)
mjspritzer


Joined: 06 Mar 2015
Posts: 10
Location: Southern California
I actually have, and I was using a Microsoft universal Bluetooth keyboard. It definitely worked, but I was using the C4Droid compilers built in SDL2 support rather than deploying my own app on the device.