comparison 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
comparison
equal deleted inserted replaced
3279:fd207dce9f94 3280:00cace2d9080
3231 return SDL_FALSE; 3231 return SDL_FALSE;
3232 } 3232 }
3233 return (_this->GetWindowWMInfo(_this, window, info)); 3233 return (_this->GetWindowWMInfo(_this, window, info));
3234 } 3234 }
3235 3235
3236 void
3237 SDL_StartTextInput(void)
3238 {
3239 if (_this->StartTextInput) {
3240 _this->StartTextInput(_this);
3241 }
3242 SDL_EventState(SDL_TEXTINPUT, SDL_ENABLE);
3243 SDL_EventState(SDL_TEXTEDITING, SDL_ENABLE);
3244 }
3245
3246 void
3247 SDL_StopTextInput(void)
3248 {
3249 if (_this->StopTextInput) {
3250 _this->StopTextInput(_this);
3251 }
3252 SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
3253 SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
3254 }
3255
3256 void
3257 SDL_SetTextInputRect(SDL_Rect *rect)
3258 {
3259 if (_this->SetTextInputRect) {
3260 _this->SetTextInputRect(_this, rect);
3261 }
3262 }
3263
3236 /* vi: set ts=4 sw=4 expandtab: */ 3264 /* vi: set ts=4 sw=4 expandtab: */