How do I get keyboard input with capitals and symbols?

By default input events from the keyboard ignore any shift key modifiers.

For example, pressing SHIFT + 5 will return a SDLK_5, not a percent symbol.

To make it so SDL takes notice of the shift key with a keyboard event, use SDL_EnableUNICODE. There is a good example of this in Handling the Keyboard.

FAQ_Unicode (last edited 2008-12-13 10:01:34 by host86-146-61-61)