Mercurial > sdl-ios-xcode
diff src/video/SDL_video.c @ 3135:f4e553ec6a62 gsoc2009_IME
Update API, first step: make it build
author | Jiang Jiang <gzjjgod@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 08:56:48 +0000 |
parents | fef1a835af43 |
children | 962357f325e1 |
line wrap: on
line diff
--- a/src/video/SDL_video.c Thu Aug 06 08:53:00 2009 +0000 +++ b/src/video/SDL_video.c Thu Aug 06 08:56:48 2009 +0000 @@ -3068,10 +3068,28 @@ } void -SDL_StartTextInput(SDL_Rect *rect) +SDL_StartTextInput(SDL_WindowID windowID) { + SDL_Window *window = SDL_GetWindowFromID(windowID); + if (_this->StartTextInput) { - _this->StartTextInput(_this, rect); + _this->StartTextInput(_this, window); + } +} + +void +SDL_StopTextInput(void) +{ + if (_this->StopTextInput) { + _this->StopTextInput(_this); + } +} + +void +SDL_SetTextInputRect(SDL_Rect *rect) +{ + if (_this->SetTextInputRect) { + _this->SetTextInputRect(_this, rect); } }