Text input is no longer automatically enabled when initializing video.

Fixes https://github.com/libsdl-org/SDL/issues/9309
Fixes https://github.com/libsdl-org/SDL/issues/9268
This commit is contained in:
Sam Lantinga 2024-03-23 09:21:28 -07:00
parent 6604d423fd
commit 72fc6f86e5
11 changed files with 41 additions and 62 deletions
include/SDL3

View file

@ -439,10 +439,11 @@ extern "C" {
* A variable that controls whether the on-screen keyboard should be shown when text input is active
*
* The variable can be set to the following values:
* "auto" - The on-screen keyboard will be shown if there is no physical keyboard attached. (default)
* "0" - Do not show the on-screen keyboard.
* "1" - Show the on-screen keyboard. (default)
* "1" - Show the on-screen keyboard, if available.
*
* This hint must be set before text input is activated.
* This hint must be set before SDL_StartTextInput() is called
*/
#define SDL_HINT_ENABLE_SCREEN_KEYBOARD "SDL_ENABLE_SCREEN_KEYBOARD"