sdl2-compat icon indicating copy to clipboard operation
sdl2-compat copied to clipboard

Desktop systems need SDL_StartTextInput by default...

Open icculus opened this issue 1 year ago • 1 comments

In SDL2, SDL_StartTextInput is running by default on "desktop" systems (basically things that aren't phones in this case?).

Right now, SDL_TEXTINPUT events aren't delivered to SDL2 apps on these platforms out of the gate, since SDL3 defaults text input to off for everyone.

We need to decide if this is a platform that should have had it on (or maybe its easier to ifndef for iOS and Android?), and call SDL3_StartTextInput() at the end of SDL_CreateWindow (or maybe at the end of the first created window...? I'm not sure.)

icculus avatar Jul 04 '24 22:07 icculus

Yes, we should replicate the logic that SDL2 had, after creating a window.

slouken avatar Jul 04 '24 23:07 slouken

FYI, this reintroduces issues on Steam Deck popping up the on-screen keyboard. We may need to set the hint to prevent enabling the screen keyboard on platforms where we do this.

slouken avatar Jan 22 '25 03:01 slouken