Module: SDL2::Key::Scan

Defined in:
ext/sdl2_ext/key.c,
ext/sdl2_ext/key.c

Overview

This module has “physical” key scancode constants and some scancode handling functions.

Constant Summary collapse

UNKNOWN =

Returns unused scancode.

Returns:

  • (Integer)

    unused scancode

INT2NUM(SDL_SCANCODE_UNKNOWN)
A =

Returns scancode for alphabet key “A”.

Returns:

  • (Integer)

    scancode for alphabet key “A”

INT2NUM(SDL_SCANCODE_A)
B =

Returns scancode for alphabet key “B”.

Returns:

  • (Integer)

    scancode for alphabet key “B”

INT2NUM(SDL_SCANCODE_B)
C =

Returns scancode for alphabet key “C”.

Returns:

  • (Integer)

    scancode for alphabet key “C”

INT2NUM(SDL_SCANCODE_C)
D =

Returns scancode for alphabet key “D”.

Returns:

  • (Integer)

    scancode for alphabet key “D”

INT2NUM(SDL_SCANCODE_D)
E =

Returns scancode for alphabet key “E”.

Returns:

  • (Integer)

    scancode for alphabet key “E”

INT2NUM(SDL_SCANCODE_E)
F =

Returns scancode for alphabet key “F”.

Returns:

  • (Integer)

    scancode for alphabet key “F”

INT2NUM(SDL_SCANCODE_F)
G =

Returns scancode for alphabet key “G”.

Returns:

  • (Integer)

    scancode for alphabet key “G”

INT2NUM(SDL_SCANCODE_G)
H =

Returns scancode for alphabet key “H”.

Returns:

  • (Integer)

    scancode for alphabet key “H”

INT2NUM(SDL_SCANCODE_H)
I =

Returns scancode for alphabet key “I”.

Returns:

  • (Integer)

    scancode for alphabet key “I”

INT2NUM(SDL_SCANCODE_I)
J =

Returns scancode for alphabet key “J”.

Returns:

  • (Integer)

    scancode for alphabet key “J”

INT2NUM(SDL_SCANCODE_J)
K =

Returns scancode for alphabet key “K”.

Returns:

  • (Integer)

    scancode for alphabet key “K”

INT2NUM(SDL_SCANCODE_K)
L =

Returns scancode for alphabet key “L”.

Returns:

  • (Integer)

    scancode for alphabet key “L”

INT2NUM(SDL_SCANCODE_L)
M =

Returns scancode for alphabet key “M”.

Returns:

  • (Integer)

    scancode for alphabet key “M”

INT2NUM(SDL_SCANCODE_M)
N =

Returns scancode for alphabet key “N”.

Returns:

  • (Integer)

    scancode for alphabet key “N”

INT2NUM(SDL_SCANCODE_N)
O =

Returns scancode for alphabet key “O”.

Returns:

  • (Integer)

    scancode for alphabet key “O”

INT2NUM(SDL_SCANCODE_O)
P =

Returns scancode for alphabet key “P”.

Returns:

  • (Integer)

    scancode for alphabet key “P”

INT2NUM(SDL_SCANCODE_P)
Q =

Returns scancode for alphabet key “Q”.

Returns:

  • (Integer)

    scancode for alphabet key “Q”

INT2NUM(SDL_SCANCODE_Q)
R =

Returns scancode for alphabet key “R”.

Returns:

  • (Integer)

    scancode for alphabet key “R”

INT2NUM(SDL_SCANCODE_R)
S =

Returns scancode for alphabet key “S”.

Returns:

  • (Integer)

    scancode for alphabet key “S”

INT2NUM(SDL_SCANCODE_S)
T =

Returns scancode for alphabet key “T”.

Returns:

  • (Integer)

    scancode for alphabet key “T”

INT2NUM(SDL_SCANCODE_T)
U =

Returns scancode for alphabet key “U”.

Returns:

  • (Integer)

    scancode for alphabet key “U”

INT2NUM(SDL_SCANCODE_U)
V =

Returns scancode for alphabet key “V”.

Returns:

  • (Integer)

    scancode for alphabet key “V”

INT2NUM(SDL_SCANCODE_V)
W =

Returns scancode for alphabet key “W”.

Returns:

  • (Integer)

    scancode for alphabet key “W”

INT2NUM(SDL_SCANCODE_W)
X =

Returns scancode for alphabet key “X”.

Returns:

  • (Integer)

    scancode for alphabet key “X”

INT2NUM(SDL_SCANCODE_X)
Y =

Returns scancode for alphabet key “Y”.

Returns:

  • (Integer)

    scancode for alphabet key “Y”

INT2NUM(SDL_SCANCODE_Y)
Z =

Returns scancode for alphabet key “Z”.

Returns:

  • (Integer)

    scancode for alphabet key “Z”

INT2NUM(SDL_SCANCODE_Z)
K1 =

Returns scancode for number key “1” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “1” (not on keypad)

INT2NUM(SDL_SCANCODE_1)
K2 =

Returns scancode for number key “2” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “2” (not on keypad)

INT2NUM(SDL_SCANCODE_2)
K3 =

Returns scancode for number key “3” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “3” (not on keypad)

INT2NUM(SDL_SCANCODE_3)
K4 =

Returns scancode for number key “4” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “4” (not on keypad)

INT2NUM(SDL_SCANCODE_4)
K5 =

Returns scancode for number key “5” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “5” (not on keypad)

INT2NUM(SDL_SCANCODE_5)
K6 =

Returns scancode for number key “6” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “6” (not on keypad)

INT2NUM(SDL_SCANCODE_6)
K7 =

Returns scancode for number key “7” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “7” (not on keypad)

INT2NUM(SDL_SCANCODE_7)
K8 =

Returns scancode for number key “8” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “8” (not on keypad)

INT2NUM(SDL_SCANCODE_8)
K9 =

Returns scancode for number key “9” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “9” (not on keypad)

INT2NUM(SDL_SCANCODE_9)
K0 =

Returns scancode for number key “0” (not on keypad).

Returns:

  • (Integer)

    scancode for number key “0” (not on keypad)

INT2NUM(SDL_SCANCODE_0)
RETURN =

Returns scancode for “RETURN” key.

Returns:

  • (Integer)

    scancode for “RETURN” key

INT2NUM(SDL_SCANCODE_RETURN)
ESCAPE =

Returns scancode for “ESCAPE” key.

Returns:

  • (Integer)

    scancode for “ESCAPE” key

INT2NUM(SDL_SCANCODE_ESCAPE)
BACKSPACE =

Returns scancode for “BACKSPACE” key.

Returns:

  • (Integer)

    scancode for “BACKSPACE” key

INT2NUM(SDL_SCANCODE_BACKSPACE)
TAB =

Returns scancode for “TAB” key.

Returns:

  • (Integer)

    scancode for “TAB” key

INT2NUM(SDL_SCANCODE_TAB)
SPACE =

Returns scancode for “SPACE” key.

Returns:

  • (Integer)

    scancode for “SPACE” key

INT2NUM(SDL_SCANCODE_SPACE)
MINUS =

Returns scancode for “MINUS” key.

Returns:

  • (Integer)

    scancode for “MINUS” key

INT2NUM(SDL_SCANCODE_MINUS)
EQUALS =

Returns scancode for “EQUALS” key.

Returns:

  • (Integer)

    scancode for “EQUALS” key

INT2NUM(SDL_SCANCODE_EQUALS)
LEFTBRACKET =

Returns scancode for “LEFTBRACKET” key.

Returns:

  • (Integer)

    scancode for “LEFTBRACKET” key

INT2NUM(SDL_SCANCODE_LEFTBRACKET)
RIGHTBRACKET =

Returns scancode for “RIGHTBRACKET” key.

Returns:

  • (Integer)

    scancode for “RIGHTBRACKET” key

INT2NUM(SDL_SCANCODE_RIGHTBRACKET)
BACKSLASH =

Returns scancode for “BACKSLASH” key.

Returns:

  • (Integer)

    scancode for “BACKSLASH” key

INT2NUM(SDL_SCANCODE_BACKSLASH)
NONUSHASH =

Returns scancode for “NONUSHASH” key.

Returns:

  • (Integer)

    scancode for “NONUSHASH” key

INT2NUM(SDL_SCANCODE_NONUSHASH)
SEMICOLON =

Returns scancode for “SEMICOLON” key.

Returns:

  • (Integer)

    scancode for “SEMICOLON” key

INT2NUM(SDL_SCANCODE_SEMICOLON)
APOSTROPHE =

Returns scancode for “APOSTROPHE” key.

Returns:

  • (Integer)

    scancode for “APOSTROPHE” key

INT2NUM(SDL_SCANCODE_APOSTROPHE)
GRAVE =

Returns scancode for “GRAVE” key.

Returns:

  • (Integer)

    scancode for “GRAVE” key

INT2NUM(SDL_SCANCODE_GRAVE)
COMMA =

Returns scancode for “COMMA” key.

Returns:

  • (Integer)

    scancode for “COMMA” key

INT2NUM(SDL_SCANCODE_COMMA)
PERIOD =

Returns scancode for “PERIOD” key.

Returns:

  • (Integer)

    scancode for “PERIOD” key

INT2NUM(SDL_SCANCODE_PERIOD)
SLASH =

Returns scancode for “SLASH” key.

Returns:

  • (Integer)

    scancode for “SLASH” key

INT2NUM(SDL_SCANCODE_SLASH)
CAPSLOCK =

Returns scancode for “CAPSLOCK” key.

Returns:

  • (Integer)

    scancode for “CAPSLOCK” key

INT2NUM(SDL_SCANCODE_CAPSLOCK)
F1 =

Returns scancode for “F1” key.

Returns:

  • (Integer)

    scancode for “F1” key

INT2NUM(SDL_SCANCODE_F1)
F2 =

Returns scancode for “F2” key.

Returns:

  • (Integer)

    scancode for “F2” key

INT2NUM(SDL_SCANCODE_F2)
F3 =

Returns scancode for “F3” key.

Returns:

  • (Integer)

    scancode for “F3” key

INT2NUM(SDL_SCANCODE_F3)
F4 =

Returns scancode for “F4” key.

Returns:

  • (Integer)

    scancode for “F4” key

INT2NUM(SDL_SCANCODE_F4)
F5 =

Returns scancode for “F5” key.

Returns:

  • (Integer)

    scancode for “F5” key

INT2NUM(SDL_SCANCODE_F5)
F6 =

Returns scancode for “F6” key.

Returns:

  • (Integer)

    scancode for “F6” key

INT2NUM(SDL_SCANCODE_F6)
F7 =

Returns scancode for “F7” key.

Returns:

  • (Integer)

    scancode for “F7” key

INT2NUM(SDL_SCANCODE_F7)
F8 =

Returns scancode for “F8” key.

Returns:

  • (Integer)

    scancode for “F8” key

INT2NUM(SDL_SCANCODE_F8)
F9 =

Returns scancode for “F9” key.

Returns:

  • (Integer)

    scancode for “F9” key

INT2NUM(SDL_SCANCODE_F9)
F10 =

Returns scancode for “F10” key.

Returns:

  • (Integer)

    scancode for “F10” key

INT2NUM(SDL_SCANCODE_F10)
F11 =

Returns scancode for “F11” key.

Returns:

  • (Integer)

    scancode for “F11” key

INT2NUM(SDL_SCANCODE_F11)
F12 =

Returns scancode for “F12” key.

Returns:

  • (Integer)

    scancode for “F12” key

INT2NUM(SDL_SCANCODE_F12)
PRINTSCREEN =

Returns scancode for “PRINTSCREEN” key.

Returns:

  • (Integer)

    scancode for “PRINTSCREEN” key

INT2NUM(SDL_SCANCODE_PRINTSCREEN)
SCROLLLOCK =

Returns scancode for “SCROLLLOCK” key.

Returns:

  • (Integer)

    scancode for “SCROLLLOCK” key

INT2NUM(SDL_SCANCODE_SCROLLLOCK)
PAUSE =

Returns scancode for “PAUSE” key.

Returns:

  • (Integer)

    scancode for “PAUSE” key

INT2NUM(SDL_SCANCODE_PAUSE)
INSERT =

Returns scancode for “INSERT” key.

Returns:

  • (Integer)

    scancode for “INSERT” key

INT2NUM(SDL_SCANCODE_INSERT)
HOME =

Returns scancode for “HOME” key.

Returns:

  • (Integer)

    scancode for “HOME” key

INT2NUM(SDL_SCANCODE_HOME)
PAGEUP =

Returns scancode for “PAGEUP” key.

Returns:

  • (Integer)

    scancode for “PAGEUP” key

INT2NUM(SDL_SCANCODE_PAGEUP)
DELETE =

Returns scancode for “DELETE” key.

Returns:

  • (Integer)

    scancode for “DELETE” key

INT2NUM(SDL_SCANCODE_DELETE)
END =

Returns scancode for “END” key.

Returns:

  • (Integer)

    scancode for “END” key

INT2NUM(SDL_SCANCODE_END)
PAGEDOWN =

Returns scancode for “PAGEDOWN” key.

Returns:

  • (Integer)

    scancode for “PAGEDOWN” key

INT2NUM(SDL_SCANCODE_PAGEDOWN)
RIGHT =

Returns scancode for “RIGHT” key.

Returns:

  • (Integer)

    scancode for “RIGHT” key

INT2NUM(SDL_SCANCODE_RIGHT)
LEFT =

Returns scancode for “LEFT” key.

Returns:

  • (Integer)

    scancode for “LEFT” key

INT2NUM(SDL_SCANCODE_LEFT)
DOWN =

Returns scancode for “DOWN” key.

Returns:

  • (Integer)

    scancode for “DOWN” key

INT2NUM(SDL_SCANCODE_DOWN)
UP =

Returns scancode for “UP” key.

Returns:

  • (Integer)

    scancode for “UP” key

INT2NUM(SDL_SCANCODE_UP)
NUMLOCKCLEAR =

Returns scancode for “NUMLOCKCLEAR” key.

Returns:

  • (Integer)

    scancode for “NUMLOCKCLEAR” key

INT2NUM(SDL_SCANCODE_NUMLOCKCLEAR)
KP_DIVIDE =

Returns scancode for “KP_DIVIDE” key.

Returns:

  • (Integer)

    scancode for “KP_DIVIDE” key

INT2NUM(SDL_SCANCODE_KP_DIVIDE)
KP_MULTIPLY =

Returns scancode for “KP_MULTIPLY” key.

Returns:

  • (Integer)

    scancode for “KP_MULTIPLY” key

INT2NUM(SDL_SCANCODE_KP_MULTIPLY)
KP_MINUS =

Returns scancode for “KP_MINUS” key.

Returns:

  • (Integer)

    scancode for “KP_MINUS” key

INT2NUM(SDL_SCANCODE_KP_MINUS)
KP_PLUS =

Returns scancode for “KP_PLUS” key.

Returns:

  • (Integer)

    scancode for “KP_PLUS” key

INT2NUM(SDL_SCANCODE_KP_PLUS)
KP_ENTER =

Returns scancode for “KP_ENTER” key.

Returns:

  • (Integer)

    scancode for “KP_ENTER” key

INT2NUM(SDL_SCANCODE_KP_ENTER)
KP_1 =

Returns scancode for “KP_1” key.

Returns:

  • (Integer)

    scancode for “KP_1” key

INT2NUM(SDL_SCANCODE_KP_1)
KP_2 =

Returns scancode for “KP_2” key.

Returns:

  • (Integer)

    scancode for “KP_2” key

INT2NUM(SDL_SCANCODE_KP_2)
KP_3 =

Returns scancode for “KP_3” key.

Returns:

  • (Integer)

    scancode for “KP_3” key

INT2NUM(SDL_SCANCODE_KP_3)
KP_4 =

Returns scancode for “KP_4” key.

Returns:

  • (Integer)

    scancode for “KP_4” key

INT2NUM(SDL_SCANCODE_KP_4)
KP_5 =

Returns scancode for “KP_5” key.

Returns:

  • (Integer)

    scancode for “KP_5” key

INT2NUM(SDL_SCANCODE_KP_5)
KP_6 =

Returns scancode for “KP_6” key.

Returns:

  • (Integer)

    scancode for “KP_6” key

INT2NUM(SDL_SCANCODE_KP_6)
KP_7 =

Returns scancode for “KP_7” key.

Returns:

  • (Integer)

    scancode for “KP_7” key

INT2NUM(SDL_SCANCODE_KP_7)
KP_8 =

Returns scancode for “KP_8” key.

Returns:

  • (Integer)

    scancode for “KP_8” key

INT2NUM(SDL_SCANCODE_KP_8)
KP_9 =

Returns scancode for “KP_9” key.

Returns:

  • (Integer)

    scancode for “KP_9” key

INT2NUM(SDL_SCANCODE_KP_9)
KP_0 =

Returns scancode for “KP_0” key.

Returns:

  • (Integer)

    scancode for “KP_0” key

INT2NUM(SDL_SCANCODE_KP_0)
KP_PERIOD =

Returns scancode for “KP_PERIOD” key.

Returns:

  • (Integer)

    scancode for “KP_PERIOD” key

INT2NUM(SDL_SCANCODE_KP_PERIOD)
NONUSBACKSLASH =

Returns scancode for “NONUSBACKSLASH” key.

Returns:

  • (Integer)

    scancode for “NONUSBACKSLASH” key

INT2NUM(SDL_SCANCODE_NONUSBACKSLASH)
APPLICATION =

Returns scancode for “APPLICATION” key.

Returns:

  • (Integer)

    scancode for “APPLICATION” key

INT2NUM(SDL_SCANCODE_APPLICATION)
POWER =

Returns scancode for “POWER” key.

Returns:

  • (Integer)

    scancode for “POWER” key

INT2NUM(SDL_SCANCODE_POWER)
KP_EQUALS =

Returns scancode for “KP_EQUALS” key.

Returns:

  • (Integer)

    scancode for “KP_EQUALS” key

INT2NUM(SDL_SCANCODE_KP_EQUALS)
F13 =

Returns scancode for “F13” key.

Returns:

  • (Integer)

    scancode for “F13” key

INT2NUM(SDL_SCANCODE_F13)
F14 =

Returns scancode for “F14” key.

Returns:

  • (Integer)

    scancode for “F14” key

INT2NUM(SDL_SCANCODE_F14)
F15 =

Returns scancode for “F15” key.

Returns:

  • (Integer)

    scancode for “F15” key

INT2NUM(SDL_SCANCODE_F15)
F16 =

Returns scancode for “F16” key.

Returns:

  • (Integer)

    scancode for “F16” key

INT2NUM(SDL_SCANCODE_F16)
F17 =

Returns scancode for “F17” key.

Returns:

  • (Integer)

    scancode for “F17” key

INT2NUM(SDL_SCANCODE_F17)
F18 =

Returns scancode for “F18” key.

Returns:

  • (Integer)

    scancode for “F18” key

INT2NUM(SDL_SCANCODE_F18)
F19 =

Returns scancode for “F19” key.

Returns:

  • (Integer)

    scancode for “F19” key

INT2NUM(SDL_SCANCODE_F19)
F20 =

Returns scancode for “F20” key.

Returns:

  • (Integer)

    scancode for “F20” key

INT2NUM(SDL_SCANCODE_F20)
F21 =

Returns scancode for “F21” key.

Returns:

  • (Integer)

    scancode for “F21” key

INT2NUM(SDL_SCANCODE_F21)
F22 =

Returns scancode for “F22” key.

Returns:

  • (Integer)

    scancode for “F22” key

INT2NUM(SDL_SCANCODE_F22)
F23 =

Returns scancode for “F23” key.

Returns:

  • (Integer)

    scancode for “F23” key

INT2NUM(SDL_SCANCODE_F23)
F24 =

Returns scancode for “F24” key.

Returns:

  • (Integer)

    scancode for “F24” key

INT2NUM(SDL_SCANCODE_F24)
EXECUTE =

Returns scancode for “EXECUTE” key.

Returns:

  • (Integer)

    scancode for “EXECUTE” key

INT2NUM(SDL_SCANCODE_EXECUTE)
HELP =

Returns scancode for “HELP” key.

Returns:

  • (Integer)

    scancode for “HELP” key

INT2NUM(SDL_SCANCODE_HELP)
INT2NUM(SDL_SCANCODE_MENU)
SELECT =

Returns scancode for “SELECT” key.

Returns:

  • (Integer)

    scancode for “SELECT” key

INT2NUM(SDL_SCANCODE_SELECT)
STOP =

Returns scancode for “STOP” key.

Returns:

  • (Integer)

    scancode for “STOP” key

INT2NUM(SDL_SCANCODE_STOP)
AGAIN =

Returns scancode for “AGAIN” key.

Returns:

  • (Integer)

    scancode for “AGAIN” key

INT2NUM(SDL_SCANCODE_AGAIN)
UNDO =

Returns scancode for “UNDO” key.

Returns:

  • (Integer)

    scancode for “UNDO” key

INT2NUM(SDL_SCANCODE_UNDO)
CUT =

Returns scancode for “CUT” key.

Returns:

  • (Integer)

    scancode for “CUT” key

INT2NUM(SDL_SCANCODE_CUT)
COPY =

Returns scancode for “COPY” key.

Returns:

  • (Integer)

    scancode for “COPY” key

INT2NUM(SDL_SCANCODE_COPY)
PASTE =

Returns scancode for “PASTE” key.

Returns:

  • (Integer)

    scancode for “PASTE” key

INT2NUM(SDL_SCANCODE_PASTE)
FIND =

Returns scancode for “FIND” key.

Returns:

  • (Integer)

    scancode for “FIND” key

INT2NUM(SDL_SCANCODE_FIND)
MUTE =

Returns scancode for “MUTE” key.

Returns:

  • (Integer)

    scancode for “MUTE” key

INT2NUM(SDL_SCANCODE_MUTE)
VOLUMEUP =

Returns scancode for “VOLUMEUP” key.

Returns:

  • (Integer)

    scancode for “VOLUMEUP” key

INT2NUM(SDL_SCANCODE_VOLUMEUP)
VOLUMEDOWN =

Returns scancode for “VOLUMEDOWN” key.

Returns:

  • (Integer)

    scancode for “VOLUMEDOWN” key

INT2NUM(SDL_SCANCODE_VOLUMEDOWN)
KP_COMMA =

Returns scancode for “KP_COMMA” key.

Returns:

  • (Integer)

    scancode for “KP_COMMA” key

INT2NUM(SDL_SCANCODE_KP_COMMA)
KP_EQUALSAS400 =

Returns scancode for “KP_EQUALSAS400” key.

Returns:

  • (Integer)

    scancode for “KP_EQUALSAS400” key

INT2NUM(SDL_SCANCODE_KP_EQUALSAS400)
INTERNATIONAL1 =

Returns scancode for “INTERNATIONAL1” key.

Returns:

  • (Integer)

    scancode for “INTERNATIONAL1” key

INT2NUM(SDL_SCANCODE_INTERNATIONAL1)
INTERNATIONAL2 =

Returns scancode for “INTERNATIONAL2” key.

Returns:

  • (Integer)

    scancode for “INTERNATIONAL2” key

INT2NUM(SDL_SCANCODE_INTERNATIONAL2)
INTERNATIONAL3 =

Returns scancode for “INTERNATIONAL3” key.

Returns:

  • (Integer)

    scancode for “INTERNATIONAL3” key

INT2NUM(SDL_SCANCODE_INTERNATIONAL3)
INTERNATIONAL4 =

Returns scancode for “INTERNATIONAL4” key.

Returns:

  • (Integer)

    scancode for “INTERNATIONAL4” key

INT2NUM(SDL_SCANCODE_INTERNATIONAL4)
INTERNATIONAL5 =

Returns scancode for “INTERNATIONAL5” key.

Returns:

  • (Integer)

    scancode for “INTERNATIONAL5” key

INT2NUM(SDL_SCANCODE_INTERNATIONAL5)
INTERNATIONAL6 =

Returns scancode for “INTERNATIONAL6” key.

Returns:

  • (Integer)

    scancode for “INTERNATIONAL6” key

INT2NUM(SDL_SCANCODE_INTERNATIONAL6)
INTERNATIONAL7 =

Returns scancode for “INTERNATIONAL7” key.

Returns:

  • (Integer)

    scancode for “INTERNATIONAL7” key

INT2NUM(SDL_SCANCODE_INTERNATIONAL7)
INTERNATIONAL8 =

Returns scancode for “INTERNATIONAL8” key.

Returns:

  • (Integer)

    scancode for “INTERNATIONAL8” key

INT2NUM(SDL_SCANCODE_INTERNATIONAL8)
INTERNATIONAL9 =

Returns scancode for “INTERNATIONAL9” key.

Returns:

  • (Integer)

    scancode for “INTERNATIONAL9” key

INT2NUM(SDL_SCANCODE_INTERNATIONAL9)
LANG1 =

Returns scancode for “LANG1” key.

Returns:

  • (Integer)

    scancode for “LANG1” key

INT2NUM(SDL_SCANCODE_LANG1)
LANG2 =

Returns scancode for “LANG2” key.

Returns:

  • (Integer)

    scancode for “LANG2” key

INT2NUM(SDL_SCANCODE_LANG2)
LANG3 =

Returns scancode for “LANG3” key.

Returns:

  • (Integer)

    scancode for “LANG3” key

INT2NUM(SDL_SCANCODE_LANG3)
LANG4 =

Returns scancode for “LANG4” key.

Returns:

  • (Integer)

    scancode for “LANG4” key

INT2NUM(SDL_SCANCODE_LANG4)
LANG5 =

Returns scancode for “LANG5” key.

Returns:

  • (Integer)

    scancode for “LANG5” key

INT2NUM(SDL_SCANCODE_LANG5)
LANG6 =

Returns scancode for “LANG6” key.

Returns:

  • (Integer)

    scancode for “LANG6” key

INT2NUM(SDL_SCANCODE_LANG6)
LANG7 =

Returns scancode for “LANG7” key.

Returns:

  • (Integer)

    scancode for “LANG7” key

INT2NUM(SDL_SCANCODE_LANG7)
LANG8 =

Returns scancode for “LANG8” key.

Returns:

  • (Integer)

    scancode for “LANG8” key

INT2NUM(SDL_SCANCODE_LANG8)
LANG9 =

Returns scancode for “LANG9” key.

Returns:

  • (Integer)

    scancode for “LANG9” key

INT2NUM(SDL_SCANCODE_LANG9)
ALTERASE =

Returns scancode for “ALTERASE” key.

Returns:

  • (Integer)

    scancode for “ALTERASE” key

INT2NUM(SDL_SCANCODE_ALTERASE)
SYSREQ =

Returns scancode for “SYSREQ” key.

Returns:

  • (Integer)

    scancode for “SYSREQ” key

INT2NUM(SDL_SCANCODE_SYSREQ)
CANCEL =

Returns scancode for “CANCEL” key.

Returns:

  • (Integer)

    scancode for “CANCEL” key

INT2NUM(SDL_SCANCODE_CANCEL)
CLEAR =

Returns scancode for “CLEAR” key.

Returns:

  • (Integer)

    scancode for “CLEAR” key

INT2NUM(SDL_SCANCODE_CLEAR)
PRIOR =

Returns scancode for “PRIOR” key.

Returns:

  • (Integer)

    scancode for “PRIOR” key

INT2NUM(SDL_SCANCODE_PRIOR)
RETURN2 =

Returns scancode for “RETURN2” key.

Returns:

  • (Integer)

    scancode for “RETURN2” key

INT2NUM(SDL_SCANCODE_RETURN2)
SEPARATOR =

Returns scancode for “SEPARATOR” key.

Returns:

  • (Integer)

    scancode for “SEPARATOR” key

INT2NUM(SDL_SCANCODE_SEPARATOR)
OUT =

Returns scancode for “OUT” key.

Returns:

  • (Integer)

    scancode for “OUT” key

INT2NUM(SDL_SCANCODE_OUT)
OPER =

Returns scancode for “OPER” key.

Returns:

  • (Integer)

    scancode for “OPER” key

INT2NUM(SDL_SCANCODE_OPER)
CLEARAGAIN =

Returns scancode for “CLEARAGAIN” key.

Returns:

  • (Integer)

    scancode for “CLEARAGAIN” key

INT2NUM(SDL_SCANCODE_CLEARAGAIN)
CRSEL =

Returns scancode for “CRSEL” key.

Returns:

  • (Integer)

    scancode for “CRSEL” key

INT2NUM(SDL_SCANCODE_CRSEL)
EXSEL =

Returns scancode for “EXSEL” key.

Returns:

  • (Integer)

    scancode for “EXSEL” key

INT2NUM(SDL_SCANCODE_EXSEL)
KP_00 =

Returns scancode for “KP_00” key.

Returns:

  • (Integer)

    scancode for “KP_00” key

INT2NUM(SDL_SCANCODE_KP_00)
KP_000 =

Returns scancode for “KP_000” key.

Returns:

  • (Integer)

    scancode for “KP_000” key

INT2NUM(SDL_SCANCODE_KP_000)
THOUSANDSSEPARATOR =

Returns scancode for “THOUSANDSSEPARATOR” key.

Returns:

  • (Integer)

    scancode for “THOUSANDSSEPARATOR” key

INT2NUM(SDL_SCANCODE_THOUSANDSSEPARATOR)
DECIMALSEPARATOR =

Returns scancode for “DECIMALSEPARATOR” key.

Returns:

  • (Integer)

    scancode for “DECIMALSEPARATOR” key

INT2NUM(SDL_SCANCODE_DECIMALSEPARATOR)
CURRENCYUNIT =

Returns scancode for “CURRENCYUNIT” key.

Returns:

  • (Integer)

    scancode for “CURRENCYUNIT” key

INT2NUM(SDL_SCANCODE_CURRENCYUNIT)
CURRENCYSUBUNIT =

Returns scancode for “CURRENCYSUBUNIT” key.

Returns:

  • (Integer)

    scancode for “CURRENCYSUBUNIT” key

INT2NUM(SDL_SCANCODE_CURRENCYSUBUNIT)
KP_LEFTPAREN =

Returns scancode for “KP_LEFTPAREN” key.

Returns:

  • (Integer)

    scancode for “KP_LEFTPAREN” key

INT2NUM(SDL_SCANCODE_KP_LEFTPAREN)
KP_RIGHTPAREN =

Returns scancode for “KP_RIGHTPAREN” key.

Returns:

  • (Integer)

    scancode for “KP_RIGHTPAREN” key

INT2NUM(SDL_SCANCODE_KP_RIGHTPAREN)
KP_LEFTBRACE =

Returns scancode for “KP_LEFTBRACE” key.

Returns:

  • (Integer)

    scancode for “KP_LEFTBRACE” key

INT2NUM(SDL_SCANCODE_KP_LEFTBRACE)
KP_RIGHTBRACE =

Returns scancode for “KP_RIGHTBRACE” key.

Returns:

  • (Integer)

    scancode for “KP_RIGHTBRACE” key

INT2NUM(SDL_SCANCODE_KP_RIGHTBRACE)
KP_TAB =

Returns scancode for “KP_TAB” key.

Returns:

  • (Integer)

    scancode for “KP_TAB” key

INT2NUM(SDL_SCANCODE_KP_TAB)
KP_BACKSPACE =

Returns scancode for “KP_BACKSPACE” key.

Returns:

  • (Integer)

    scancode for “KP_BACKSPACE” key

INT2NUM(SDL_SCANCODE_KP_BACKSPACE)
KP_A =

Returns scancode for “KP_A” key.

Returns:

  • (Integer)

    scancode for “KP_A” key

INT2NUM(SDL_SCANCODE_KP_A)
KP_B =

Returns scancode for “KP_B” key.

Returns:

  • (Integer)

    scancode for “KP_B” key

INT2NUM(SDL_SCANCODE_KP_B)
KP_C =

Returns scancode for “KP_C” key.

Returns:

  • (Integer)

    scancode for “KP_C” key

INT2NUM(SDL_SCANCODE_KP_C)
KP_D =

Returns scancode for “KP_D” key.

Returns:

  • (Integer)

    scancode for “KP_D” key

INT2NUM(SDL_SCANCODE_KP_D)
KP_E =

Returns scancode for “KP_E” key.

Returns:

  • (Integer)

    scancode for “KP_E” key

INT2NUM(SDL_SCANCODE_KP_E)
KP_F =

Returns scancode for “KP_F” key.

Returns:

  • (Integer)

    scancode for “KP_F” key

INT2NUM(SDL_SCANCODE_KP_F)
KP_XOR =

Returns scancode for “KP_XOR” key.

Returns:

  • (Integer)

    scancode for “KP_XOR” key

INT2NUM(SDL_SCANCODE_KP_XOR)
KP_POWER =

Returns scancode for “KP_POWER” key.

Returns:

  • (Integer)

    scancode for “KP_POWER” key

INT2NUM(SDL_SCANCODE_KP_POWER)
KP_PERCENT =

Returns scancode for “KP_PERCENT” key.

Returns:

  • (Integer)

    scancode for “KP_PERCENT” key

INT2NUM(SDL_SCANCODE_KP_PERCENT)
KP_LESS =

Returns scancode for “KP_LESS” key.

Returns:

  • (Integer)

    scancode for “KP_LESS” key

INT2NUM(SDL_SCANCODE_KP_LESS)
KP_GREATER =

Returns scancode for “KP_GREATER” key.

Returns:

  • (Integer)

    scancode for “KP_GREATER” key

INT2NUM(SDL_SCANCODE_KP_GREATER)
KP_AMPERSAND =

Returns scancode for “KP_AMPERSAND” key.

Returns:

  • (Integer)

    scancode for “KP_AMPERSAND” key

INT2NUM(SDL_SCANCODE_KP_AMPERSAND)
KP_DBLAMPERSAND =

Returns scancode for “KP_DBLAMPERSAND” key.

Returns:

  • (Integer)

    scancode for “KP_DBLAMPERSAND” key

INT2NUM(SDL_SCANCODE_KP_DBLAMPERSAND)
KP_VERTICALBAR =

Returns scancode for “KP_VERTICALBAR” key.

Returns:

  • (Integer)

    scancode for “KP_VERTICALBAR” key

INT2NUM(SDL_SCANCODE_KP_VERTICALBAR)
KP_DBLVERTICALBAR =

Returns scancode for “KP_DBLVERTICALBAR” key.

Returns:

  • (Integer)

    scancode for “KP_DBLVERTICALBAR” key

INT2NUM(SDL_SCANCODE_KP_DBLVERTICALBAR)
KP_COLON =

Returns scancode for “KP_COLON” key.

Returns:

  • (Integer)

    scancode for “KP_COLON” key

INT2NUM(SDL_SCANCODE_KP_COLON)
KP_HASH =

Returns scancode for “KP_HASH” key.

Returns:

  • (Integer)

    scancode for “KP_HASH” key

INT2NUM(SDL_SCANCODE_KP_HASH)
KP_SPACE =

Returns scancode for “KP_SPACE” key.

Returns:

  • (Integer)

    scancode for “KP_SPACE” key

INT2NUM(SDL_SCANCODE_KP_SPACE)
KP_AT =

Returns scancode for “KP_AT” key.

Returns:

  • (Integer)

    scancode for “KP_AT” key

INT2NUM(SDL_SCANCODE_KP_AT)
KP_EXCLAM =

Returns scancode for “KP_EXCLAM” key.

Returns:

  • (Integer)

    scancode for “KP_EXCLAM” key

INT2NUM(SDL_SCANCODE_KP_EXCLAM)
KP_MEMSTORE =

Returns scancode for “KP_MEMSTORE” key.

Returns:

  • (Integer)

    scancode for “KP_MEMSTORE” key

INT2NUM(SDL_SCANCODE_KP_MEMSTORE)
KP_MEMRECALL =

Returns scancode for “KP_MEMRECALL” key.

Returns:

  • (Integer)

    scancode for “KP_MEMRECALL” key

INT2NUM(SDL_SCANCODE_KP_MEMRECALL)
KP_MEMCLEAR =

Returns scancode for “KP_MEMCLEAR” key.

Returns:

  • (Integer)

    scancode for “KP_MEMCLEAR” key

INT2NUM(SDL_SCANCODE_KP_MEMCLEAR)
KP_MEMADD =

Returns scancode for “KP_MEMADD” key.

Returns:

  • (Integer)

    scancode for “KP_MEMADD” key

INT2NUM(SDL_SCANCODE_KP_MEMADD)
KP_MEMSUBTRACT =

Returns scancode for “KP_MEMSUBTRACT” key.

Returns:

  • (Integer)

    scancode for “KP_MEMSUBTRACT” key

INT2NUM(SDL_SCANCODE_KP_MEMSUBTRACT)
KP_MEMMULTIPLY =

Returns scancode for “KP_MEMMULTIPLY” key.

Returns:

  • (Integer)

    scancode for “KP_MEMMULTIPLY” key

INT2NUM(SDL_SCANCODE_KP_MEMMULTIPLY)
KP_MEMDIVIDE =

Returns scancode for “KP_MEMDIVIDE” key.

Returns:

  • (Integer)

    scancode for “KP_MEMDIVIDE” key

INT2NUM(SDL_SCANCODE_KP_MEMDIVIDE)
KP_PLUSMINUS =

Returns scancode for “KP_PLUSMINUS” key.

Returns:

  • (Integer)

    scancode for “KP_PLUSMINUS” key

INT2NUM(SDL_SCANCODE_KP_PLUSMINUS)
KP_CLEAR =

Returns scancode for “KP_CLEAR” key.

Returns:

  • (Integer)

    scancode for “KP_CLEAR” key

INT2NUM(SDL_SCANCODE_KP_CLEAR)
KP_CLEARENTRY =

Returns scancode for “KP_CLEARENTRY” key.

Returns:

  • (Integer)

    scancode for “KP_CLEARENTRY” key

INT2NUM(SDL_SCANCODE_KP_CLEARENTRY)
KP_BINARY =

Returns scancode for “KP_BINARY” key.

Returns:

  • (Integer)

    scancode for “KP_BINARY” key

INT2NUM(SDL_SCANCODE_KP_BINARY)
KP_OCTAL =

Returns scancode for “KP_OCTAL” key.

Returns:

  • (Integer)

    scancode for “KP_OCTAL” key

INT2NUM(SDL_SCANCODE_KP_OCTAL)
KP_DECIMAL =

Returns scancode for “KP_DECIMAL” key.

Returns:

  • (Integer)

    scancode for “KP_DECIMAL” key

INT2NUM(SDL_SCANCODE_KP_DECIMAL)
KP_HEXADECIMAL =

Returns scancode for “KP_HEXADECIMAL” key.

Returns:

  • (Integer)

    scancode for “KP_HEXADECIMAL” key

INT2NUM(SDL_SCANCODE_KP_HEXADECIMAL)
LCTRL =

Returns scancode for “LCTRL” key.

Returns:

  • (Integer)

    scancode for “LCTRL” key

INT2NUM(SDL_SCANCODE_LCTRL)
LSHIFT =

Returns scancode for “LSHIFT” key.

Returns:

  • (Integer)

    scancode for “LSHIFT” key

INT2NUM(SDL_SCANCODE_LSHIFT)
LALT =

Returns scancode for “LALT” key.

Returns:

  • (Integer)

    scancode for “LALT” key

INT2NUM(SDL_SCANCODE_LALT)
LGUI =

Returns scancode for “LGUI” key.

Returns:

  • (Integer)

    scancode for “LGUI” key

INT2NUM(SDL_SCANCODE_LGUI)
RCTRL =

Returns scancode for “RCTRL” key.

Returns:

  • (Integer)

    scancode for “RCTRL” key

INT2NUM(SDL_SCANCODE_RCTRL)
RSHIFT =

Returns scancode for “RSHIFT” key.

Returns:

  • (Integer)

    scancode for “RSHIFT” key

INT2NUM(SDL_SCANCODE_RSHIFT)
RALT =

Returns scancode for “RALT” key.

Returns:

  • (Integer)

    scancode for “RALT” key

INT2NUM(SDL_SCANCODE_RALT)
RGUI =

Returns scancode for “RGUI” key.

Returns:

  • (Integer)

    scancode for “RGUI” key

INT2NUM(SDL_SCANCODE_RGUI)
MODE =

Returns scancode for “MODE” key.

Returns:

  • (Integer)

    scancode for “MODE” key

INT2NUM(SDL_SCANCODE_MODE)
AUDIONEXT =

Returns scancode for “AUDIONEXT” key.

Returns:

  • (Integer)

    scancode for “AUDIONEXT” key

INT2NUM(SDL_SCANCODE_AUDIONEXT)
AUDIOPREV =

Returns scancode for “AUDIOPREV” key.

Returns:

  • (Integer)

    scancode for “AUDIOPREV” key

INT2NUM(SDL_SCANCODE_AUDIOPREV)
AUDIOSTOP =

Returns scancode for “AUDIOSTOP” key.

Returns:

  • (Integer)

    scancode for “AUDIOSTOP” key

INT2NUM(SDL_SCANCODE_AUDIOSTOP)
AUDIOPLAY =

Returns scancode for “AUDIOPLAY” key.

Returns:

  • (Integer)

    scancode for “AUDIOPLAY” key

INT2NUM(SDL_SCANCODE_AUDIOPLAY)
AUDIOMUTE =

Returns scancode for “AUDIOMUTE” key.

Returns:

  • (Integer)

    scancode for “AUDIOMUTE” key

INT2NUM(SDL_SCANCODE_AUDIOMUTE)
MEDIASELECT =

Returns scancode for “MEDIASELECT” key.

Returns:

  • (Integer)

    scancode for “MEDIASELECT” key

INT2NUM(SDL_SCANCODE_MEDIASELECT)
WWW =

Returns scancode for “WWW” key.

Returns:

  • (Integer)

    scancode for “WWW” key

INT2NUM(SDL_SCANCODE_WWW)
MAIL =

Returns scancode for “MAIL” key.

Returns:

  • (Integer)

    scancode for “MAIL” key

INT2NUM(SDL_SCANCODE_MAIL)
CALCULATOR =

Returns scancode for “CALCULATOR” key.

Returns:

  • (Integer)

    scancode for “CALCULATOR” key

INT2NUM(SDL_SCANCODE_CALCULATOR)
COMPUTER =

Returns scancode for “COMPUTER” key.

Returns:

  • (Integer)

    scancode for “COMPUTER” key

INT2NUM(SDL_SCANCODE_COMPUTER)
AC_SEARCH =

Returns scancode for “AC_SEARCH” key.

Returns:

  • (Integer)

    scancode for “AC_SEARCH” key

INT2NUM(SDL_SCANCODE_AC_SEARCH)
AC_HOME =

Returns scancode for “AC_HOME” key.

Returns:

  • (Integer)

    scancode for “AC_HOME” key

INT2NUM(SDL_SCANCODE_AC_HOME)
AC_BACK =

Returns scancode for “AC_BACK” key.

Returns:

  • (Integer)

    scancode for “AC_BACK” key

INT2NUM(SDL_SCANCODE_AC_BACK)
AC_FORWARD =

Returns scancode for “AC_FORWARD” key.

Returns:

  • (Integer)

    scancode for “AC_FORWARD” key

INT2NUM(SDL_SCANCODE_AC_FORWARD)
AC_STOP =

Returns scancode for “AC_STOP” key.

Returns:

  • (Integer)

    scancode for “AC_STOP” key

INT2NUM(SDL_SCANCODE_AC_STOP)
AC_REFRESH =

Returns scancode for “AC_REFRESH” key.

Returns:

  • (Integer)

    scancode for “AC_REFRESH” key

INT2NUM(SDL_SCANCODE_AC_REFRESH)
AC_BOOKMARKS =

Returns scancode for “AC_BOOKMARKS” key.

Returns:

  • (Integer)

    scancode for “AC_BOOKMARKS” key

INT2NUM(SDL_SCANCODE_AC_BOOKMARKS)
BRIGHTNESSDOWN =

Returns scancode for “BRIGHTNESSDOWN” key.

Returns:

  • (Integer)

    scancode for “BRIGHTNESSDOWN” key

INT2NUM(SDL_SCANCODE_BRIGHTNESSDOWN)
BRIGHTNESSUP =

Returns scancode for “BRIGHTNESSUP” key.

Returns:

  • (Integer)

    scancode for “BRIGHTNESSUP” key

INT2NUM(SDL_SCANCODE_BRIGHTNESSUP)
DISPLAYSWITCH =

Returns scancode for “DISPLAYSWITCH” key.

Returns:

  • (Integer)

    scancode for “DISPLAYSWITCH” key

INT2NUM(SDL_SCANCODE_DISPLAYSWITCH)
KBDILLUMTOGGLE =

Returns scancode for “KBDILLUMTOGGLE” key.

Returns:

  • (Integer)

    scancode for “KBDILLUMTOGGLE” key

INT2NUM(SDL_SCANCODE_KBDILLUMTOGGLE)
KBDILLUMDOWN =

Returns scancode for “KBDILLUMDOWN” key.

Returns:

  • (Integer)

    scancode for “KBDILLUMDOWN” key

INT2NUM(SDL_SCANCODE_KBDILLUMDOWN)
KBDILLUMUP =

Returns scancode for “KBDILLUMUP” key.

Returns:

  • (Integer)

    scancode for “KBDILLUMUP” key

INT2NUM(SDL_SCANCODE_KBDILLUMUP)
EJECT =

Returns scancode for “EJECT” key.

Returns:

  • (Integer)

    scancode for “EJECT” key

INT2NUM(SDL_SCANCODE_EJECT)
SLEEP =

Returns scancode for “SLEEP” key.

Returns:

  • (Integer)

    scancode for “SLEEP” key

INT2NUM(SDL_SCANCODE_SLEEP)
APP1 =

Returns scancode for “APP1” key.

Returns:

  • (Integer)

    scancode for “APP1” key

INT2NUM(SDL_SCANCODE_APP1)
APP2 =

Returns scancode for “APP2” key.

Returns:

  • (Integer)

    scancode for “APP2” key

INT2NUM(SDL_SCANCODE_APP2)

Class Method Summary collapse

Class Method Details

.from_keycode(keycode) ⇒ Integer

Get a keycode corresponding to the given keycode

Parameters:

  • keycode (Integer)

    keycode

Returns:

  • (Integer)

    keycode

See Also:



130
131
132
133
# File 'ext/sdl2_ext/key.c', line 130

static VALUE Scan_s_from_keycode(VALUE self, VALUE keycode)
{
    return INT2NUM(SDL_GetScancodeFromKey(NUM2INT(keycode)));
}

.from_name(name) ⇒ String

Get a scancode from the key of the given name

Parameters:

  • name (String)

    name of a key

Returns:

  • (String)

See Also:



117
118
119
120
# File 'ext/sdl2_ext/key.c', line 117

static VALUE Scan_s_from_name(VALUE self, VALUE name)
{
    return INT2NUM(SDL_GetScancodeFromName(StringValueCStr(name)));
}

.name_of(code) ⇒ String

Get a human-readable name of the given scancode

Parameters:

  • code (Integer)

    scancode

Returns:

  • (String)

See Also:



103
104
105
106
# File 'ext/sdl2_ext/key.c', line 103

static VALUE Scan_s_name_of(VALUE self, VALUE code)
{
    return utf8str_new_cstr(SDL_GetScancodeName(NUM2INT(code)));
}