This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

Draft

THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!

SDL_Scancode

An enumeration of the SDL keyboard scancode representation.

Values

<<Include(SDL_ScancodeAndKeycode, , , from="##Start include here.", to="##End include here.")>>

Code Examples

  /* checks if a key is being remapped and prints what the remapping is */
  if (event->key.keysym.scancode != SDL_GetScancodeFromKey(event->key.keysym.sym)) {
    SDL_Log("Physical %s key acting as %s key",
      SDL_GetScancodeName(event->key.keysym.scancode),
      SDL_GetKeyName(event->key.keysym.sym));
  }

Remarks

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:

SDL Scancode Lookup Table
SDL Keycode Lookup Table
SDL_Keycode
SDL_GetKeyboardState
SDL_GetKeyFromScancode
SDL_GetKeyName
SDL_GetScancodeFromKey
SDL_GetScancodeName

CategoryEnum, CategoryKeyboard, CategoryDraft


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.