class com.babylonhx.utils.Scancodes

import com.babylonhx.utils.Keycodes;

Available on all platforms

The scancode class. The values below come directly from SDL header include files, but they aren't specific to SDL so they are used generically

Class Fields

static var MASK:Int

static var ac_back:Int

static var ac_bookmarks:Int

static var ac_forward:Int

static var ac_home:Int

static var ac_refresh:Int

static var ac_search:Int

static var ac_stop:Int

static var again:Int

redo

static var alterase:Int

Erase-Eaze

static var apostrophe:Int

static var app1:Int

static var app2:Int

static var application:Int

windows contextual menu, compose

static var audiomute:Int

static var audionext:Int

static var audioplay:Int

static var audioprev:Int

static var audiostop:Int

static var backslash:Int

Located at the lower left of the return key on ISO keyboards and at the right end of the QWERTY row on ANSI keyboards. Produces REVERSE SOLIDUS (backslash) and VERTICAL LINE in a US layout, REVERSE SOLIDUS and VERTICAL LINE in a UK Mac layout, NUMBER SIGN and TILDE in a UK Windows layout, DOLLAR SIGN and POUND SIGN in a Swiss German layout, NUMBER SIGN and APOSTROPHE in a German layout, GRAVE ACCENT and POUND SIGN in a French Mac layout, and ASTERISK and MICRO SIGN in a French Windows layout.

static var backspace:Int

static var brightnessdown:Int

static var brightnessup:Int

static var calculator:Int

static var cancel:Int

static var capslock:Int

static var clear:Int

static var clearagain:Int

static var comma:Int

static var computer:Int

static var copy:Int

static var crsel:Int

static var currencysubunit:Int

static var currencyunit:Int

static var cut:Int

static var delete:Int

static var displayswitch:Int

display mirroring/dual display switch, video mode switch

static var down:Int

static var eject:Int

static var end:Int

static var enter:Int

static var equals:Int

static var escape:Int

static var execute:Int

static var exsel:Int

static var f1:Int

static var f10:Int

static var f11:Int

static var f12:Int

static var f13:Int

static var f14:Int

static var f15:Int

static var f16:Int

static var f17:Int

static var f18:Int

static var f19:Int

static var f2:Int

static var f20:Int

static var f21:Int

static var f22:Int

static var f23:Int

static var f24:Int

static var f3:Int

static var f4:Int

static var f5:Int

static var f6:Int

static var f7:Int

static var f8:Int

static var f9:Int

static var find:Int

static var grave:Int

Located in the top left corner (on both ANSI and ISO keyboards). Produces GRAVE ACCENT and TILDE in a US Windows layout and in US and UK Mac layouts on ANSI keyboards, GRAVE ACCENT and NOT SIGN in a UK Windows layout, SECTION SIGN and PLUS-MINUS SIGN in US and UK Mac layouts on ISO keyboards, SECTION SIGN and DEGREE SIGN in a Swiss German layout (Mac: only on ISO keyboards); CIRCUMFLEX ACCENT and DEGREE SIGN in a German layout (Mac: only on ISO keyboards), SUPERSCRIPT TWO and TILDE in a French Windows layout, COMMERCIAL AT and NUMBER SIGN in a French Mac layout on ISO keyboards, and LESS-THAN SIGN and GREATER-THAN SIGN in a Swiss German, German, or French Mac layout on ANSI keyboards.

static var help:Int

static var home:Int

static var insert:Int

insert on PC, help on some Mac keyboards (but does send code 73, not 117)

static var international1:Int

used on Asian keyboards; see footnotes in USB doc

static var international2:Int

static var international3:Int

Yen

static var international4:Int

static var international5:Int

static var international6:Int

static var international7:Int

static var international8:Int

static var international9:Int

static var kbdillumdown:Int

static var kbdillumtoggle:Int

static var kbdillumup:Int

static var key_0:Int

static var key_1:Int

static var key_2:Int

static var key_3:Int

static var key_4:Int

static var key_5:Int

static var key_6:Int

static var key_7:Int

static var key_8:Int

static var key_9:Int

static var key_a:Int

static var key_b:Int

static var key_c:Int

static var key_d:Int

static var key_e:Int

static var key_f:Int

static var key_g:Int

static var key_h:Int

static var key_i:Int

static var key_j:Int

static var key_k:Int

static var key_l:Int

static var key_m:Int

static var key_n:Int

static var key_o:Int

static var key_p:Int

static var key_q:Int

static var key_r:Int

static var key_s:Int

static var key_t:Int

static var key_u:Int

static var key_v:Int

static var key_w:Int

static var key_x:Int

static var key_y:Int

static var key_z:Int

static var kp_0:Int

static var kp_00:Int

static var kp_000:Int

static var kp_1:Int

static var kp_2:Int

static var kp_3:Int

static var kp_4:Int

static var kp_5:Int

static var kp_6:Int

static var kp_7:Int

static var kp_8:Int

static var kp_9:Int

static var kp_a:Int

static var kp_ampersand:Int

static var kp_at:Int

static var kp_b:Int

static var kp_backspace:Int

static var kp_binary:Int

static var kp_c:Int

static var kp_clear:Int

static var kp_clearentry:Int

static var kp_colon:Int

static var kp_comma:Int

static var kp_d:Int

static var kp_dblampersand:Int

static var kp_decimal:Int

static var kp_divide:Int

static var kp_e:Int

static var kp_enter:Int

static var kp_equals:Int

static var kp_equalsas400:Int

static var kp_exclam:Int

static var kp_f:Int

static var kp_greater:Int

static var kp_hash:Int

static var kp_hexadecimal:Int

static var kp_leftbrace:Int

static var kp_leftparen:Int

static var kp_less:Int

static var kp_memadd:Int

static var kp_memclear:Int

static var kp_memdivide:Int

static var kp_memmultiply:Int

static var kp_memrecall:Int

static var kp_memstore:Int

static var kp_memsubtract:Int

static var kp_minus:Int

static var kp_multiply:Int

static var kp_octal:Int

static var kp_percent:Int

static var kp_period:Int

static var kp_plus:Int

static var kp_plusminus:Int

static var kp_power:Int

static var kp_rightbrace:Int

static var kp_rightparen:Int

static var kp_space:Int

static var kp_tab:Int

static var kp_verticalbar:Int

static var kp_xor:Int

static var lalt:Int

alt, option

static var lang1:Int

Hangul/English toggle

static var lang2:Int

Hanja conversion

static var lang3:Int

Katakana

static var lang4:Int

Hiragana

static var lang5:Int

Zenkaku/Hankaku

static var lang6:Int

reserved

static var lang7:Int

reserved

static var lang8:Int

reserved

static var lang9:Int

reserved

static var lctrl:Int

static var left:Int

static var leftbracket:Int

static var lmeta:Int

windows, command (apple), meta

static var lshift:Int

static var mail:Int

static var mediaselect:Int

static var menu:Int

static var minus:Int

static var mode:Int

Not sure if this is really not covered by any of the above, but since there's a special KMOD_MODE for it I'm adding it here

static var mute:Int

static var nonusbackslash:Int

This is the additional key that ISO keyboards have over ANSI ones, located between left shift and Y. Produces GRAVE ACCENT and TILDE in a US or UK Mac layout, REVERSE SOLIDUS (backslash) and VERTICAL LINE in a US or UK Windows layout, and LESS-THAN SIGN and GREATER-THAN SIGN in a Swiss German, German, or French layout.

static var nonushash:Int

ISO USB keyboards actually use this code instead of 49 for the same key, but all OSes I've seen treat the two codes identically. So, as an implementor, unless your keyboard generates both of those codes and your OS treats them differently, you should generate public static var BACKSLASH instead of this code. As a user, you should not rely on this code because SDL will never generate it with most (all?) keyboards.

static var numlockclear:Int

num lock on PC, clear on Mac keyboards

static var oper:Int

static var out:Int

static var pagedown:Int

static var pageup:Int

static var paste:Int

static var pause:Int

static var period:Int

static var power:Int

The USB document says this is a status flag, not a physical key - but some Mac keyboards do have a power key.

static var printscreen:Int

static var prior:Int

static var ralt:Int

alt gr, option

static var rctrl:Int

static var return2:Int

static var right:Int

static var rightbracket:Int

static var rmeta:Int

windows, command (apple), meta

static var rshift:Int

static var scrolllock:Int

static var select:Int

static var semicolon:Int

static var separator:Int

static var slash:Int

static var sleep:Int

static var space:Int

static var stop:Int

static var sysreq:Int

static var tab:Int

static var undo:Int

static var unknown:Int

static var up:Int

static var volumedown:Int

static var volumeup:Int

static var www:Int

static function name(scancode:Int):String

Convert a scancode to a name