| 3773 | } |
| 3774 | |
| 3775 | void |
| 3776 | SDL_StartTextInput(void) |
| 3777 | { |
| 3778 | SDL_Window *window; |
| 3779 | |
| 3780 | /* First, enable text events */ |
| 3781 | SDL_EventState(SDL_TEXTINPUT, SDL_ENABLE); |
| 3782 | SDL_EventState(SDL_TEXTEDITING, SDL_ENABLE); |
| 3783 | |
| 3784 | /* Then show the on-screen keyboard, if any */ |
| 3785 | window = SDL_GetFocusWindow(); |
| 3786 | if (window && _this && _this->ShowScreenKeyboard) { |
| 3787 | _this->ShowScreenKeyboard(_this, window); |
| 3788 | } |
| 3789 | |
| 3790 | /* Finally start the text input system */ |
| 3791 | if (_this && _this->StartTextInput) { |
| 3792 | _this->StartTextInput(_this); |
| 3793 | } |
| 3794 | } |
| 3795 | |
| 3796 | SDL_bool |
| 3797 | SDL_IsTextInputActive(void) |