20 void Keyboard::begin_text_input(
const SDL_TextInputType input_type,
const SDL_Capitalization capitals,
const bool multiline)
const noexcept
22 if (!SDL_TextInputActive(m_window))
24 const auto props = SDL_CreateProperties();
25 SDL_SetNumberProperty(props, SDL_PROP_TEXTINPUT_TYPE_NUMBER, input_type);
26 SDL_SetNumberProperty(props, SDL_PROP_TEXTINPUT_CAPITALIZATION_NUMBER, capitals);
27 SDL_SetBooleanProperty(props, SDL_PROP_TEXTINPUT_AUTOCORRECT_BOOLEAN,
false);
28 SDL_SetBooleanProperty(props, SDL_PROP_TEXTINPUT_MULTILINE_BOOLEAN, multiline);
30 SDL_StartTextInputWithProperties(m_window, props);
31 SDL_DestroyProperties(props);
void begin_text_input(const SDL_TextInputType input_type, const SDL_Capitalization capitals, const bool multiline) const noexcept
Enable window to begin processing text input.