SDL/src
Sam Lantinga 75a23d99a5 Fixed bug 2212 - SDL_SetTextInputRect has no effect on iOS
philhassey

Overview: While SDL_SetTextInputRect works perfectly to move my window out of the way of the virtual keyboard using SDL2/Android, on iOS this function has no effect.

Steps to Reproduce: Call SDL_SetTextInputRect with a rect near the bottom of the screen before calling SDL_StartTextInput.

Actual Results: The iOS virtual keyboard is displayed after calling SDL_StartTextInput, but the screen is not shifted to reveal the TextInputRect region.

Expected Results: The screen should be shifted to reveal the TextInputRect region (like with SDL2/Android.)

This patch implements SDL_SetTextInputRect for uikit/iOS.

It sets up notification handlers to respond to changes in the display of the keyboard.  These handlers then change the frame of the view so it is moved out of the way of the keyboard as per SetTextInputRect.
2013-11-11 20:51:19 -08:00
..
atomic Fixed bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings 2013-10-20 21:56:15 -07:00
audio Updated notes about building with the Windows 8 SDK: Get the DirectX SDK. 2013-11-09 01:15:17 -08:00
core Fixed implicit function declarations by including the missing header. 2013-11-10 14:39:38 +01:00
cpuinfo Initialize MEMORYSTATUSEX size before GlobalMemoryStatusEx() (thanks, Justin!). 2013-10-23 19:52:14 -04:00
events Changed parameter name for gesture template save functions from "src" to "dst". 2013-11-02 12:07:21 +01:00
file Fixed building using MinGW 2013-10-17 23:02:29 -07:00
filesystem Fixed buffer overflow. 2013-10-24 00:00:10 -04:00
haptic Moved a SDL_SetError() call elsewhere to avoid triggering it needlessly. 2013-10-23 15:54:12 -04:00
input/evdev Prevent keystrokes from leaking through to the console when using evdev. 2013-10-13 17:15:43 -03:00
joystick [Android] Fixes bug 2217, better joystick axes handling on Android. 2013-11-11 10:15:35 -03:00
libm OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
loadso Rolled back my LoadLibrary change. The first failed call causes a dialog to pop up in Windows apps (but not console apps) and that's really bad. I'll have to deal with this in my app. 2013-09-28 14:06:39 -07:00
main Backed out changeset 737771c47c6f, done testing Buildbot changes. 2013-10-20 20:24:00 -04:00
power Added a macro SDL_TICKS_PASSED() to correctly compare two 32-bit tick values. 2013-10-20 20:42:55 -07:00
render Fixed performance regression caused by the fix for bug 2158 2013-11-05 21:01:25 -08:00
stdlib Fixed building using MinGW 2013-10-17 23:02:29 -07:00
test Toggling fullscreen now takes fullscreen flags 2013-11-11 01:59:20 -08:00
thread Added a macro SDL_TICKS_PASSED() to correctly compare two 32-bit tick values. 2013-10-20 20:42:55 -07:00
timer Fixes bug #2074 - Thanks Sylvain! 2013-08-29 14:03:44 -03:00
video Fixed bug 2212 - SDL_SetTextInputRect has no effect on iOS 2013-11-11 20:51:19 -08:00
SDL.c Made helper window creation depend on initializing the Haptics or Joystick subsystems. 2013-11-08 14:05:15 -08:00
SDL_assert.c Fixed building using MinGW 2013-10-17 23:02:29 -07:00
SDL_assert_c.h Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_error.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_error_c.h Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_hints.c Christoph Mallon: Remove pointless if (x) before SDL_free(x) 2013-08-29 08:29:21 -07:00
SDL_log.c Fixed building using MinGW 2013-10-17 23:02:29 -07:00