SDL_keysym Struct Reference
#include <SDL_keyboard.h>
Detailed Description
Keysym structure
- The scancode is hardware dependent, and should not be used by general applications. If no hardware scancode is available, it will be 0.
- The 'unicode' translated character is only available when character translation is enabled by the SDL_EnableUNICODE() API. If non-zero, this is a UNICODE character corresponding to the keypress. If the high 9 bits of the character are 0, then this maps to the equivalent ASCII character:
char ch;
if ( (keysym.unicode & 0xFF80) == 0 ) {
ch = keysym.unicode & 0x7F;
} else {
An international character..
}
Field Documentation
hardware specific scancode
The documentation for this struct was generated from the following file: