diff src/video/SDL_video.c @ 3280:00cace2d9080

Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009
author Sam Lantinga <slouken@libsdl.org>
date Sat, 19 Sep 2009 13:29:40 +0000
parents 720d176be107
children 1ed5d432e468
line wrap: on
line diff
--- a/src/video/SDL_video.c	Sat Sep 19 12:48:52 2009 +0000
+++ b/src/video/SDL_video.c	Sat Sep 19 13:29:40 2009 +0000
@@ -3233,4 +3233,32 @@
     return (_this->GetWindowWMInfo(_this, window, info));
 }
 
+void
+SDL_StartTextInput(void)
+{
+    if (_this->StartTextInput) {
+        _this->StartTextInput(_this);
+    }
+    SDL_EventState(SDL_TEXTINPUT, SDL_ENABLE);
+    SDL_EventState(SDL_TEXTEDITING, SDL_ENABLE);
+}
+
+void
+SDL_StopTextInput(void)
+{
+    if (_this->StopTextInput) {
+        _this->StopTextInput(_this);
+    }
+    SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
+    SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
+}
+
+void
+SDL_SetTextInputRect(SDL_Rect *rect)
+{
+    if (_this->SetTextInputRect) {
+        _this->SetTextInputRect(_this, rect);
+    }
+}
+
 /* vi: set ts=4 sw=4 expandtab: */