Module: DXOpal::Input::KeyCodes

Defined in:
lib/dxopal/input/key_codes.rb

Overview

Constant Summary collapse

K_ESCAPE =

TODO: add event.code for those commented out (pull request welcome)

'Escape'
K_1 =
'Digit1'
K_2 =
'Digit2'
K_3 =
'Digit3'
K_4 =
'Digit4'
K_5 =
'Digit5'
K_6 =
'Digit6'
K_7 =
'Digit7'
K_8 =
'Digit8'
K_9 =
'Digit9'
K_0 =
'Digit0'
K_MINUS =
'Minus'
K_EQUALS =
'Equal'
K_BACK =
'Backspace'
K_TAB =
'Tab'
K_Q =
'KeyQ'
K_W =
'KeyW'
K_E =
'KeyE'
K_R =
'KeyR'
K_T =
'KeyT'
K_Y =
'KeyY'
K_U =
'KeyU'
K_I =
'KeyI'
K_O =
'KeyO'
K_P =
'KeyP'
K_LBRACKET =
'BracketLeft'
K_RBRACKET =
'BracketRight'
K_RETURN =
'Enter'
K_ENTER =

Alias; not in DXRuby

'Enter'
K_LCONTROL =
'ControlLeft'
K_A =
'KeyA'
K_S =
'KeyS'
K_D =
'KeyD'
K_F =
'KeyF'
K_G =
'KeyG'
K_H =
'KeyH'
K_J =
'KeyJ'
K_K =
'KeyK'
K_L =
'KeyL'
K_SEMICOLON =
'Semicolon'
K_APOSTROPHE =

'

'Quote'
K_GRAVE =

`

"Backquote"
K_LSHIFT =
'ShiftLeft'
K_BACKSLASH =

Note: different to K_YEN

'BackSlash'
K_Z =
'KeyZ'
K_X =
'KeyX'
K_C =
'KeyC'
K_V =
'KeyV'
K_B =
'KeyB'
K_N =
'KeyN'
K_M =
'KeyM'
K_COMMA =
'Comma'
K_PERIOD =
'Period'
K_SLASH =
'Slash'
K_RSHIFT =
'ShiftRight'
K_MULTIPLY =
"NumpadMultiply"
K_SPACE =

K_LMENU Alt

'Space'
K_F1 =

K_CAPITAL

"F1"
K_F2 =
"F2"
K_F3 =
"F3"
K_F4 =
"F4"
K_F5 =
"F5"
K_F6 =
"F6"
K_F7 =
"F7"
K_F8 =
"F8"
K_F9 =
"F9"
K_F10 =
"F10"
K_NUMLOCK =
"NumLock"
K_SCROLL =
"ScrollLock"
K_NUMPAD7 =
"Numpad7"
K_NUMPAD8 =
"Numpad8"
K_NUMPAD9 =
"Numpad9"
K_SUBTRACT =
"NumpadSubtract"
K_NUMPAD4 =
"Numpad4"
K_NUMPAD5 =
"Numpad5"
K_NUMPAD6 =
"Numpad6"
K_ADD =
"NumpadAdd"
K_NUMPAD1 =
"Numpad1"
K_NUMPAD2 =
"Numpad2"
K_NUMPAD3 =
"Numpad3"
K_NUMPAD0 =
"Numpad0"
K_DECIMAL =
"NumpadDecimal"
K_F11 =

K_OEM_102

"F11"
K_F12 =
"F12"
K_F13 =
"F13"
K_F14 =
"F14"
K_F15 =
"F15"
K_KANA =
"KanaMode"
K_CONVERT =

K_ABNT_C1

"Convert"
K_NOCONVERT =
"NonConvert"
K_YEN =
'IntlYen'
K_COLON =

K_ABNT_C2 K_NUMPADEQUALS = *3 *1 K_PREVTRACK K_AT

'Colon'
K_UNDERLINE =

_

'IntlRo'
K_NUMPADENTER =

K_KANJI K_STOP K_AX K_UNLABELED K_NEXTTRACK

"NumpadEnter"
K_RCONTROL =
'ControlRight'
K_MUTE =
"VolumeMute"
K_VOLUMEDOWN =

K_CALCULATOR K_PLAYPAUSE K_MEDIASTOP

"VolumeDown"
K_VOLUMEUP =
"VolumeUp"
K_WEBHOME =
"BrowserHome"
K_DIVIDE =

K_NUMPADCOMMA , *3 *1

"NumpadDivide"
K_PAUSE =

K_SYSRQ K_RMENU Alt

"Pause"
K_HOME =
"Home"
K_UP =
'ArrowUp'
K_LEFT =

K_PRIOR

'ArrowLeft'
K_RIGHT =
'ArrowRight'
K_END =
"End"
K_DOWN =
'ArrowDown'
K_INSERT =

K_NEXT

"Insert"
K_DELETE =
"Delete"
K_WEBSEARCH =

K_LWIN K_RWIN K_APPS K_POWER K_SLEEP K_WAKE

"BrowserSearch"
K_WEBFAVORITES =
"BrowserFavorites"
K_WEBREFRESH =
"BrowserRefresh"
K_WEBSTOP =
"BrowserStop"
K_WEBFORWARD =
"BrowserForward"
K_WEBBACK =
"BrowserBack"
K_BACKSPACE =

K_MYCOMPUTER K_MAIL K_MEDIASELECT

'Backspace'
K_NUMPADSTAR =
"NumpadMultiply"
K_LALT =
"AltLeft"
K_CAPSLOCK =
'CapsLock'
K_NUMPADMINUS =
"NumpadSubtract"
K_NUMPADPLUS =
"NumpadAdd"
K_NUMPADPERIOD =
"NumpadDecimal"
K_NUMPADSLASH =
"NumpadDivide"
K_RALT =
"AltRight"
K_UPARROW =
'ArrowUp'
K_PGUP =
"PageUp"
K_LEFTARROW =
'ArrowLeft'
K_RIGHTARROW =
'ArrowRight'
K_DOWNARROW =
'ArrowDown'
K_PGDN =
"PageDown"