KeyButton

List of keyboard buttons.

Values

ValueMeaning
unknownSDL_SCANCODE_UNKNOWN
aSDL_SCANCODE_A
bSDL_SCANCODE_B
cSDL_SCANCODE_C
dSDL_SCANCODE_D
eSDL_SCANCODE_E
fSDL_SCANCODE_F
gSDL_SCANCODE_G
hSDL_SCANCODE_H
iSDL_SCANCODE_I
jSDL_SCANCODE_J
kSDL_SCANCODE_K
lSDL_SCANCODE_L
mSDL_SCANCODE_M
nSDL_SCANCODE_N
oSDL_SCANCODE_O
pSDL_SCANCODE_P
qSDL_SCANCODE_Q
rSDL_SCANCODE_R
sSDL_SCANCODE_S
tSDL_SCANCODE_T
uSDL_SCANCODE_U
vSDL_SCANCODE_V
wSDL_SCANCODE_W
xSDL_SCANCODE_X
ySDL_SCANCODE_Y
zSDL_SCANCODE_Z
alpha1SDL_SCANCODE_1
alpha2SDL_SCANCODE_2
alpha3SDL_SCANCODE_3
alpha4SDL_SCANCODE_4
alpha5SDL_SCANCODE_5
alpha6SDL_SCANCODE_6
alpha7SDL_SCANCODE_7
alpha8SDL_SCANCODE_8
alpha9SDL_SCANCODE_9
alpha0SDL_SCANCODE_0
enterSDL_SCANCODE_RETURN
escapeSDL_SCANCODE_ESCAPE
backspaceSDL_SCANCODE_BACKSPACE
tabSDL_SCANCODE_TAB
spaceSDL_SCANCODE_SPACE
minusSDL_SCANCODE_MINUS
equalsSDL_SCANCODE_EQUALS
leftBracketSDL_SCANCODE_LEFTBRACKET
rightBracketSDL_SCANCODE_RIGHTBRACKET
backslashSDL_SCANCODE_BACKSLASH
nonushashSDL_SCANCODE_NONUSHASH
semicolonSDL_SCANCODE_SEMICOLON
apostropheSDL_SCANCODE_APOSTROPHE
graveSDL_SCANCODE_GRAVE
commaSDL_SCANCODE_COMMA
periodSDL_SCANCODE_PERIOD
slashSDL_SCANCODE_SLASH
capslockSDL_SCANCODE_CAPSLOCK
f1SDL_SCANCODE_F1
f2SDL_SCANCODE_F2
f3SDL_SCANCODE_F3
f4SDL_SCANCODE_F4
f5SDL_SCANCODE_F5
f6SDL_SCANCODE_F6
f7SDL_SCANCODE_F7
f8SDL_SCANCODE_F8
f9SDL_SCANCODE_F9
f10SDL_SCANCODE_F10
f11SDL_SCANCODE_F11
f12SDL_SCANCODE_F12
printScreenSDL_SCANCODE_PRINTSCREEN
scrollLockSDL_SCANCODE_SCROLLLOCK
pauseSDL_SCANCODE_PAUSE
insertSDL_SCANCODE_INSERT
homeSDL_SCANCODE_HOME
pageupSDL_SCANCODE_PAGEUP
removeSDL_SCANCODE_DELETE
endSDL_SCANCODE_END
pagedownSDL_SCANCODE_PAGEDOWN
leftSDL_SCANCODE_LEFT
downSDL_SCANCODE_DOWN
upSDL_SCANCODE_UP
numLockclearSDL_SCANCODE_NUMLOCKCLEAR
numDivideSDL_SCANCODE_KP_DIVIDE
numMultiplySDL_SCANCODE_KP_MULTIPLY
numMinusSDL_SCANCODE_KP_MINUS
numPlusSDL_SCANCODE_KP_PLUS
numEnterSDL_SCANCODE_KP_ENTER
num1SDL_SCANCODE_KP_1
num2SDL_SCANCODE_KP_2
num3SDL_SCANCODE_KP_3
num4SDL_SCANCODE_KP_4
num5SDL_SCANCODE_KP_5
num6SDL_SCANCODE_KP_6
num7SDL_SCANCODE_KP_7
num8SDL_SCANCODE_KP_8
num9SDL_SCANCODE_KP_9
num0SDL_SCANCODE_KP_0
numPeriodSDL_SCANCODE_KP_PERIOD
nonusBackslashSDL_SCANCODE_NONUSBACKSLASH
applicationSDL_SCANCODE_APPLICATION
powerSDL_SCANCODE_POWER
numEqualsSDL_SCANCODE_KP_EQUALS
f13SDL_SCANCODE_F13
f14SDL_SCANCODE_F14
f15SDL_SCANCODE_F15
f16SDL_SCANCODE_F16
f17SDL_SCANCODE_F17
f18SDL_SCANCODE_F18
f19SDL_SCANCODE_F19
f20SDL_SCANCODE_F20
f21SDL_SCANCODE_F21
f22SDL_SCANCODE_F22
f23SDL_SCANCODE_F23
f24SDL_SCANCODE_F24
executeSDL_SCANCODE_EXECUTE
helpSDL_SCANCODE_HELP
selectSDL_SCANCODE_SELECT
stopSDL_SCANCODE_STOP
againSDL_SCANCODE_AGAIN
undoSDL_SCANCODE_UNDO
cutSDL_SCANCODE_CUT
copySDL_SCANCODE_COPY
pasteSDL_SCANCODE_PASTE
findSDL_SCANCODE_FIND
muteSDL_SCANCODE_MUTE
volumeUpSDL_SCANCODE_VOLUMEUP
volumeDownSDL_SCANCODE_VOLUMEDOWN
numCommaSDL_SCANCODE_KP_COMMA
numEqualsAs400SDL_SCANCODE_KP_EQUALSAS400
international1SDL_SCANCODE_INTERNATIONAL1
international2SDL_SCANCODE_INTERNATIONAL2
international3SDL_SCANCODE_INTERNATIONAL3
international4SDL_SCANCODE_INTERNATIONAL4
international5SDL_SCANCODE_INTERNATIONAL5
international6SDL_SCANCODE_INTERNATIONAL6
international7SDL_SCANCODE_INTERNATIONAL7
international8SDL_SCANCODE_INTERNATIONAL8
international9SDL_SCANCODE_INTERNATIONAL9
lang1SDL_SCANCODE_LANG1
lang2SDL_SCANCODE_LANG2
lang3SDL_SCANCODE_LANG3
lang4SDL_SCANCODE_LANG4
lang5SDL_SCANCODE_LANG5
lang6SDL_SCANCODE_LANG6
lang7SDL_SCANCODE_LANG7
lang8SDL_SCANCODE_LANG8
lang9SDL_SCANCODE_LANG9
alteraseSDL_SCANCODE_ALTERASE
sysreqSDL_SCANCODE_SYSREQ
cancelSDL_SCANCODE_CANCEL
clearSDL_SCANCODE_CLEAR
priorSDL_SCANCODE_PRIOR
enter2SDL_SCANCODE_RETURN2
separatorSDL_SCANCODE_SEPARATOR
out_SDL_SCANCODE_OUT
operSDL_SCANCODE_OPER
clearAgainSDL_SCANCODE_CLEARAGAIN
crselSDL_SCANCODE_CRSEL
exselSDL_SCANCODE_EXSEL
num00SDL_SCANCODE_KP_00
num000SDL_SCANCODE_KP_000
thousandSeparatorSDL_SCANCODE_THOUSANDSSEPARATOR
decimalSeparatorSDL_SCANCODE_DECIMALSEPARATOR
currencyUnitSDL_SCANCODE_CURRENCYUNIT
currencySubunitSDL_SCANCODE_CURRENCYSUBUNIT
numLeftParenthesisSDL_SCANCODE_KP_LEFTPAREN
numRightParenthesisSDL_SCANCODE_KP_RIGHTPAREN
numLeftBraceSDL_SCANCODE_KP_LEFTBRACE
numRightBraceSDL_SCANCODE_KP_RIGHTBRACE
numTabSDL_SCANCODE_KP_TAB
numBackspaceSDL_SCANCODE_KP_BACKSPACE
numASDL_SCANCODE_KP_A
numBSDL_SCANCODE_KP_B
numCSDL_SCANCODE_KP_C
numDSDL_SCANCODE_KP_D
numESDL_SCANCODE_KP_E
numFSDL_SCANCODE_KP_F
numXorSDL_SCANCODE_KP_XOR
numPowerSDL_SCANCODE_KP_POWER
numPercentSDL_SCANCODE_KP_PERCENT
numLessSDL_SCANCODE_KP_LESS
numGreaterSDL_SCANCODE_KP_GREATER
numAmpersandSDL_SCANCODE_KP_AMPERSAND
numDblAmpersandSDL_SCANCODE_KP_DBLAMPERSAND
numVerticalBarSDL_SCANCODE_KP_VERTICALBAR
numDblVerticalBarSDL_SCANCODE_KP_DBLVERTICALBAR
numColonSDL_SCANCODE_KP_COLON
numHashSDL_SCANCODE_KP_HASH
numSpaceSDL_SCANCODE_KP_SPACE
numAtSDL_SCANCODE_KP_AT
numExclamSDL_SCANCODE_KP_EXCLAM
numMemStoreSDL_SCANCODE_KP_MEMSTORE
numMemRecallSDL_SCANCODE_KP_MEMRECALL
numMemClearSDL_SCANCODE_KP_MEMCLEAR
numMemAddSDL_SCANCODE_KP_MEMADD
numMemSubtractSDL_SCANCODE_KP_MEMSUBTRACT
numMemMultiplySDL_SCANCODE_KP_MEMMULTIPLY
numMemDivideSDL_SCANCODE_KP_MEMDIVIDE
numPlusMinusSDL_SCANCODE_KP_PLUSMINUS
numClearSDL_SCANCODE_KP_CLEAR
numClearEntrySDL_SCANCODE_KP_CLEARENTRY
numBinarySDL_SCANCODE_KP_BINARY
numOctalSDL_SCANCODE_KP_OCTAL
numDecimalSDL_SCANCODE_KP_DECIMAL
numHexadecimalSDL_SCANCODE_KP_HEXADECIMAL
leftControlSDL_SCANCODE_LCTRL
leftShiftSDL_SCANCODE_LSHIFT
leftAltSDL_SCANCODE_LALT
leftGUISDL_SCANCODE_LGUI
rightControlSDL_SCANCODE_RCTRL
rightShiftSDL_SCANCODE_RSHIFT
rightAltSDL_SCANCODE_RALT
rightGUISDL_SCANCODE_RGUI
modeSDL_SCANCODE_MODE
audioNextSDL_SCANCODE_AUDIONEXT
audioPrevSDL_SCANCODE_AUDIOPREV
audioStopSDL_SCANCODE_AUDIOSTOP
audioPlaySDL_SCANCODE_AUDIOPLAY
audioMuteSDL_SCANCODE_AUDIOMUTE
mediaSelectSDL_SCANCODE_MEDIASELECT
wwwSDL_SCANCODE_WWW
mailSDL_SCANCODE_MAIL
calculatorSDL_SCANCODE_CALCULATOR
computerSDL_SCANCODE_COMPUTER
acSearchSDL_SCANCODE_AC_SEARCH
acHomeSDL_SCANCODE_AC_HOME
acBackSDL_SCANCODE_AC_BACK
acForwardSDL_SCANCODE_AC_FORWARD
acStopSDL_SCANCODE_AC_STOP
acRefreshSDL_SCANCODE_AC_REFRESH
acBookmarksSDL_SCANCODE_AC_BOOKMARKS
brightnessDownSDL_SCANCODE_BRIGHTNESSDOWN
brightnessUpSDL_SCANCODE_BRIGHTNESSUP
displaysWitchSDL_SCANCODE_DISPLAYSWITCH
kbdIllumToggleSDL_SCANCODE_KBDILLUMTOGGLE
kbdIllumDownSDL_SCANCODE_KBDILLUMDOWN
kbdIllumUpSDL_SCANCODE_KBDILLUMUP
ejectSDL_SCANCODE_EJECT
sleepSDL_SCANCODE_SLEEP
app1SDL_SCANCODE_APP1
app2SDL_SCANCODE_APP2

Meta