[SDL] My thoughts on keyboard input in SDL 1.3

Christian Walther cwalther at gmx.ch
Mon Jan 21 04:48:45 PST 2008


Jeff wrote:
> On Sun January 20 2008 09:18, list at akfoerster.de wrote:
>> Please don't simply throw that away!
>> I currently write a fancy text-terminal emulator using SDL, so getting the
>> unicode character is very handy.
> 
> I second that. I use SDL 1.2 for non-game applications for which text input is 
> very important. I'm not currently using SDL 1.3 mostly because keyboard input 
> isn't yet mature.

That's what text input events are for in SDL 1.3. Piggybacking text 
input onto key events was a suboptimal choice in SDL 1.2 that we're 
trying to correct.

Keep in mind that in general there is no 1-to-1 correspondence between 
keystrokes and characters input - with dead keys and input methods, 
multiple keystrokes can result in a single character, or with things 
like handwriting recognition, characters could be input without any 
keystrokes at all.

  -Christian




More information about the SDL mailing list