flex游戏引擎(PushButton)-控制输入(2)InputMap Key 名以下是使用在InputMap class中的键,每个键盘的标签
flex游戏引擎(PushButton)-控制输入(2)
InputMap Key 名
以下是使用在InputMap class中的键,每个键盘的标签做为InputKey class 的常量名,也在XML定义的InputMap使用。
Navigation Keys
PAGE_UPThe page up key.
PAGE_DOWNThe page down key.
ENDThe end key.
HOMEThe home key.
LEFT (LEFT_ARROW)The left arrow key.
RIGHT (RIGHT_ARROW)The right arrow key.
UP (UP_ARROW)The up arrow key.
DOWN (DOWN_ARROW)The down arrow key. Number Keys
ZERO (0, NUMBER_0)The '0' key at the top of the keyboard (not the number pad).
ONE (1, NUMBER_1)The '1' key at the top of the keyboard (not the number pad).
TWO (2, NUMBER_2)The '2' key at the top of the keyboard (not the number pad).
THREE (3, NUMBER_3)The '3' key at the top of the keyboard (not the number pad).
FOUR (4, NUMBER_4)The '4' key at the top of the keyboard (not the number pad).
FIVE (5, NUMBER_5)The '5' key at the top of the keyboard (not the number pad).
SIX (6, NUMBER_6)The '6' key at the top of the keyboard (not the number pad).
SEVEN (7, NUMBER_7)The '7' key at the top of the keyboard (not the number pad).
EIGHT (8, NUMBER_8)The '8' key at the top of the keyboard (not the number pad).
NINE (9, NUMBER_9)The '9' key at the top of the keyboard (not the number pad). Letter Keys
AThe A key.
BThe B key.
CThe C key.
DThe D key.
EThe E key.
FThe F key.
GThe G key.
HThe H key.
IThe I key.
JThe J key.
KThe K key.
LThe L key.
MThe M key.
NThe N key.
OThe O key.
PThe P key.
QThe Q key.
RThe R key.
SThe S key.
TThe T key.
UThe U key.
VThe V key.
WThe W key.
XThe X key.
YThe Y key.
ZThe Z key. Number Pad Keys
NUM0 (NUMPAD_0)Zero on the number pad.
NUM1 (NUMPAD_1)One on the number pad.
NUM2 (NUMPAD_2)Two on the number pad.
NUM3 (NUMPAD_3)Three on the number pad.
NUM4 (NUMPAD_4)Four on the number pad.
NUM5 (NUMPAD_5)Five on the number pad.
NUM6 (NUMPAD_6)Six on the number pad.
NUM7 (NUMPAD_7)Seven on the number pad.
NUM8 (NUMPAD_8)Eight on the number pad.
NUM9 (NUMPAD_9)Nine on the number pad.
MULTIPLY (ASTERISK, NUMMULTIPLY, NUMPAD_MULTIPLY)The asterisk key on the number pad (*).
ADD (NUMADD, NUMPAD_ADD)The add key on the number pad (+).
SUBTRACT (NUMSUBTRACT, NUMPAD_SUBTRACT)The subtract key on the number pad (-).
DECIMAL (NUMDECIMAL, NUMPERIOD, NUMPAD_DECIMAL, NUMPAD_PERIOD)The decimal key on the number pad (.).
DIVIDE (NUMDIVIDE, NUMPAD_DIVIDE)The divide key on the number pad (/).
NUMENTER (NUMPAD_ENTER)The enter key on the number pad. Function Keys
F1The first function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F2The second function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F3The third function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F4The fourth function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F5The fifth function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F6The sixth function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F7The seventh function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F8The eighth function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F9The ninth function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F11The eleventh function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F12The twelfth function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F13The thirteenth function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F14The fourteenth function key. Some keyboards map the function keys to special commands, and thus can't be relied upon.
F15The fifteenth function key. Some keyboards map the function keys to special commands, and thus can't be relied upon. Punctuation Keys
PLUS (EQUAL)The equals key (=). This is not the add key on the number pad.
MINUS (UNDERSCORE)The minus key (-). This is not the subtract key on the number pad.
COLON (SEMICOLON)The semi-colon key (;).
COMMA (LESS_THAN)The comma key (,).
PERIOD (GREATER_THAN)The period key (.). This is not the decimal on the number pad.
BACKSLASH (QUESTION_MARK)The backslash key (/). This is not the divid key on the number pad.
SLASH (FORWARD_SLASH, PIPE)The forward slash key (\).
TILDE (BACKQUOTE)The tilde key (~).
LEFT_BRACKET (LEFT_BRACE)The left bracket key ([).
RIGHT_BRACKET (RIGHT_BRACE)The right bracket key (]).
QUOTEThe quote key ('). Other Keys
BACKSPACEThe backspace key. Labeled 'delete' on Apple keyboards.
TABThe tab key.
SPACE (SPACE_BAR)The space bar key.
ENTER (RETURN)The enter key. Labeled 'return' on Apple keyboards. This is not the enter key on the number pad.
SHIFTEither the left or right shift key.
CONTROLEither the left or right control key.
COMMANDThe command key. Only available on OSX.
ALT (OPTION, ALTERNATE)The alt key. Labeled 'option' on Apple keyboards.
PAUSEThe pause key. Sometimes this is labeled 'break'.
ESCAPEThe escape key.
INSERTThe insert key.
DELETEThe delete key. This is the forward delete key on Apple keyboards.
CAPS_LOCKThe caps lock key.
NUM_LOCKThe num lock key.
SCROLL_LOCKThe scroll lock key. Mouse
MOUSE_BUTTONThe left mouse button.
MOUSE_XHorizontal mouse movement.
MOUSE_YVertical mouse movement.