TEXTINPUT & Return/Backspace

I notice that when SDL_TextInput is active, the appropriate event doesn’t detect return or backspace being pressed - instead these keys generate a SDL_KEYDOWN event, which is rather odd. It’s also a bit cumbersome as you need to detect character presses in two places.

That’s normal, text input is only meant to handle characters being
added to the current input (i.e. whenever the user inserts text), for
anything else (enter, backspace, arrows, etc.) you’re supposed to keep
using the normal keyboard input since it’s not text.

2014-07-22 20:05 GMT-03:00, MrTAToad :> I notice that when SDL_TextInput is active, the appropriate event doesn’t

detect return or backspace being pressed - instead these keys generate a
SDL_KEYDOWN event, which is rather odd. It’s also a bit cumbersome as you
need to detect character presses in two places.

Ah, right - thanks for that.