Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scancode names and mappings #12369

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

seragh
Copy link

@seragh seragh commented Feb 23, 2025

Description

This completes the list of names for SDL scancodes and maps some additional Linux keycodes to SDL scancodes.

Scancodes I wasn't able to map linux keycodes for, either as it may not be possible or like in case of SDL_SCANCODE_AC_PRINT the KEY_PRINT is already mapped to SDL_SCANCODE_PRINTSCREEN.

  • SDL_SCANCODE_NONUSHASH = 50, /**< ISO USB keyboards actually use this code
  • SDL_SCANCODE_EXECUTE = 116,
  • SDL_SCANCODE_KP_EQUALSAS400 = 134,
  • SDL_SCANCODE_INTERNATIONAL6 = 140,
  • SDL_SCANCODE_INTERNATIONAL7 = 141,
  • SDL_SCANCODE_INTERNATIONAL8 = 142,
  • SDL_SCANCODE_INTERNATIONAL9 = 143,
  • SDL_SCANCODE_LANG6 = 149, /**< reserved */
  • SDL_SCANCODE_LANG7 = 150, /**< reserved */
  • SDL_SCANCODE_LANG8 = 151, /**< reserved */
  • SDL_SCANCODE_LANG9 = 152, /**< reserved */
  • SDL_SCANCODE_PRIOR = 157,
  • SDL_SCANCODE_RETURN2 = 158,
  • SDL_SCANCODE_SEPARATOR = 159,
  • SDL_SCANCODE_OUT = 160,
  • SDL_SCANCODE_OPER = 161,
  • SDL_SCANCODE_CLEARAGAIN = 162,
  • SDL_SCANCODE_CRSEL = 163,
  • SDL_SCANCODE_EXSEL = 164,
  • SDL_SCANCODE_KP_00 = 176,
  • SDL_SCANCODE_KP_000 = 177,
  • SDL_SCANCODE_THOUSANDSSEPARATOR = 178,
  • SDL_SCANCODE_DECIMALSEPARATOR = 179,
  • SDL_SCANCODE_CURRENCYUNIT = 180,
  • SDL_SCANCODE_CURRENCYSUBUNIT = 181,
  • SDL_SCANCODE_KP_LEFTBRACE = 184,
  • SDL_SCANCODE_KP_RIGHTBRACE = 185,
  • SDL_SCANCODE_KP_TAB = 186,
  • SDL_SCANCODE_KP_BACKSPACE = 187,
  • SDL_SCANCODE_KP_A = 188,
  • SDL_SCANCODE_KP_B = 189,
  • SDL_SCANCODE_KP_C = 190,
  • SDL_SCANCODE_KP_D = 191,
  • SDL_SCANCODE_KP_E = 192,
  • SDL_SCANCODE_KP_F = 193,
  • SDL_SCANCODE_KP_XOR = 194,
  • SDL_SCANCODE_KP_POWER = 195,
  • SDL_SCANCODE_KP_PERCENT = 196,
  • SDL_SCANCODE_KP_LESS = 197,
  • SDL_SCANCODE_KP_GREATER = 198,
  • SDL_SCANCODE_KP_AMPERSAND = 199,
  • SDL_SCANCODE_KP_DBLAMPERSAND = 200,
  • SDL_SCANCODE_KP_VERTICALBAR = 201,
  • SDL_SCANCODE_KP_DBLVERTICALBAR = 202,
  • SDL_SCANCODE_KP_COLON = 203,
  • SDL_SCANCODE_KP_HASH = 204,
  • SDL_SCANCODE_KP_SPACE = 205,
  • SDL_SCANCODE_KP_AT = 206,
  • SDL_SCANCODE_KP_EXCLAM = 207,
  • SDL_SCANCODE_KP_MEMSTORE = 208,
  • SDL_SCANCODE_KP_MEMRECALL = 209,
  • SDL_SCANCODE_KP_MEMCLEAR = 210,
  • SDL_SCANCODE_KP_MEMADD = 211,
  • SDL_SCANCODE_KP_MEMSUBTRACT = 212,
  • SDL_SCANCODE_KP_MEMMULTIPLY = 213,
  • SDL_SCANCODE_KP_MEMDIVIDE = 214,
  • SDL_SCANCODE_KP_CLEAR = 216,
  • SDL_SCANCODE_KP_CLEARENTRY = 217,
  • SDL_SCANCODE_KP_BINARY = 218,
  • SDL_SCANCODE_KP_OCTAL = 219,
  • SDL_SCANCODE_KP_DECIMAL = 220,
  • SDL_SCANCODE_KP_HEXADECIMAL = 221,
  • SDL_SCANCODE_AC_PRINT = 278, /**< AC Print */

Existing Issue(s)

Fixes: #12361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDL3: Add missing keycode to scancode mappings
2 participants