[SDL] Keyboard Input
oremanj at gmail.com
Sat Feb 25 17:53:45 PST 2006
On 2/25/06, Chris Nystrom <cnystrom at gmail.com> wrote:
> I just want the results of the keyboard input, and I am not real
> concerned about which actual key is in use. For example, if num lock
> is depressed and you push the '1' you get a '1' back and not a key
> symbol with the 1 key pad code which is different that the 1 key code.
> Does the following code look right, or is there a better way? This is
> for my US English keyboard.
Try calling SDL_EnableUNICODE(1) and using the keysym.unicode value -
that's the actual letter typed.
More information about the SDL