[SDL] how is SDL 1.3 keyboard input supposed to work?

Bob Pendleton bob at pendleton.com
Wed Dec 26 16:51:08 PST 2007


Can you explain how the new input system is supposed to work? I thought
I understood it, but now I am pretty sure I don't.

There is a new textinput event. My guess is that this is used to return
the utf-8 for a key when a text key such as "a" or "(" are pressed. Is
this correct? Are these events always sent or only when unicode input is
enabled?

There are a number of new functions for looking up the names of
characters and converting them ... can you give me a complete list of
these and how they are supposed to work? Also, what are they for?

Another thing that bothers me is that the table in SDL_keynames.h
doesn't actually contain the SDLK_* names of the keys. Why is that?

It makes sense to me that the key up/down events return only physical
key codes and textinput events return the utf-8 unicode when it is
available. But most of the rest seems like overkill to me. 

I'm sending this to the whole list for clarification. 

	Bob Pendleton




More information about the SDL mailing list