libsdl-org / sdl2-compat

An SDL2 compatibility layer that uses SDL3 behind the scenes.
zlib License
65 stars 17 forks source link

Desktop systems need SDL_StartTextInput by default... #183

Open icculus opened 4 days ago

icculus commented 4 days ago

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.)

slouken commented 4 days ago

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