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
Text area input rect SDL2 iphone
polyfrag


Joined: 24 May 2014
Posts: 30
How do I prevent the rest of the window from sliding too far out of view when I open the text rect? Something's buggy with the text rect right now on iphone.
Text area input rect SDL2 iphone
Alex Szpakowski
Guest

On iOS, SDL_SetTextInputRect sets the rectangle where your text is showing up in window-space coordinates. SDL will make sure the area covered by that rectangle is always visible even with the keyboard active (so it might push the window up if the keyboard was going to cover that area.)

Also make sure you’re using the latest SDL source code, since SDL 2.0.3 had some issues with the on-screen keyboard on modern iOS versions.
Quote:
On Sep 28, 2015, at 2:55 AM, polyfrag wrote:
How do I prevent the rest of the window from sliding too far out of view when I open the text rect? Something's buggy with the text rect right now on iphone.
_______________________________________________SDL mailinghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org