MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_StartTextInput

Function SDL_StartTextInput

deps/SDL2/src/video/SDL_video.c:3775–3794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3773}
3774
3775void
3776SDL_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
3796SDL_bool
3797SDL_IsTextInputActive(void)

Callers 7

mainFunction · 0.85
loopFunction · 0.85
mainFunction · 0.85
InitInputFunction · 0.85
_RedrawFunction · 0.85
SDL_VideoInitFunction · 0.85

Calls 2

SDL_EventStateFunction · 0.85
SDL_GetFocusWindowFunction · 0.85

Tested by 5

loopFunction · 0.68
mainFunction · 0.68
InitInputFunction · 0.68
_RedrawFunction · 0.68