src/video/SDL_video.c
changeset 3280 00cace2d9080
parent 3276 720d176be107
child 3283 1ed5d432e468
     1.1 --- a/src/video/SDL_video.c	Sat Sep 19 12:48:52 2009 +0000
     1.2 +++ b/src/video/SDL_video.c	Sat Sep 19 13:29:40 2009 +0000
     1.3 @@ -3233,4 +3233,32 @@
     1.4      return (_this->GetWindowWMInfo(_this, window, info));
     1.5  }
     1.6  
     1.7 +void
     1.8 +SDL_StartTextInput(void)
     1.9 +{
    1.10 +    if (_this->StartTextInput) {
    1.11 +        _this->StartTextInput(_this);
    1.12 +    }
    1.13 +    SDL_EventState(SDL_TEXTINPUT, SDL_ENABLE);
    1.14 +    SDL_EventState(SDL_TEXTEDITING, SDL_ENABLE);
    1.15 +}
    1.16 +
    1.17 +void
    1.18 +SDL_StopTextInput(void)
    1.19 +{
    1.20 +    if (_this->StopTextInput) {
    1.21 +        _this->StopTextInput(_this);
    1.22 +    }
    1.23 +    SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
    1.24 +    SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
    1.25 +}
    1.26 +
    1.27 +void
    1.28 +SDL_SetTextInputRect(SDL_Rect *rect)
    1.29 +{
    1.30 +    if (_this->SetTextInputRect) {
    1.31 +        _this->SetTextInputRect(_this, rect);
    1.32 +    }
    1.33 +}
    1.34 +
    1.35  /* vi: set ts=4 sw=4 expandtab: */