THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
An enumeration of the SDL keyboard scancode representation.
<<Include(SDL_ScancodeAndKeycode, , , from="##Start include here.", to="##End include here.")>>
/* checks if a key is being remapped and prints what the remapping is */
if (event->key.keysym.scancode != SDL_GetScancodeFromKey(event->key.keysym.sym)) {
"Physical %s key acting as %s key",
SDL_Log(
SDL_GetScancodeName(event->key.keysym.scancode),
SDL_GetKeyName(event->key.keysym.sym)); }
Values of this type are used to represent the physical location of a keyboard key on the keyboard. This is correlated to the SDL_Keycode associated with that location to give a key press meaning.
Values of this type are used to represent keyboard keys, among other places in the SDL_keysym::scancode
key.keysym.scancode
field of the SDL_Event structure.
The values in this enumeration are based on the USB usage page standard:
http://www.usb.org/developers/docs/
To look up a scancode or keycode by decimal or hexadecimal value you can use the following tables:
CategoryEnum, CategoryKeyboard, CategoryDraft