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.
Simple Directmedia Layer Forums
Problems with the onscreen Android keyboard
Joined: 01 Dec 2016
Posted: Thu Jan 05, 2017 4:00 pm
On some Android devices (like Nexus 7 2012) sometimes, when using SDL_StartTextInput(), you get a SDL_WINDOWEVENT_FOCUS_LOST event. This can cause trouble on desktop games which rely on seeing if you have a focus, that are ported to Android. Maybe that event shouldn't be generated on Android, since the main events loop should be paused anyway while losing focus?