macro.KEY 枚举

模块: _decorator父模块: cc

键盘事件的按键值

索引

  • none
  • back
  • menu
  • backspace
  • tab
  • enter
  • shift
  • ctrl
  • alt
  • pause
  • capslock
  • escape
  • space
  • pageup
  • pagedown
  • end
  • home
  • left
  • up
  • right
  • down
  • select
  • insert
  • Delete
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
  • i
  • j
  • k
  • l
  • m
  • n
  • o
  • p
  • q
  • r
  • s
  • t
  • u
  • v
  • w
  • x
  • y
  • z
  • num0
  • num1
  • num2
  • num3
  • num4
  • num5
  • num6
  • num7
  • num8
  • num9
  • *
  • +
  • -
  • numdel
  • /
  • f1
  • f2
  • f3
  • f4
  • f5
  • f6
  • f7
  • f8
  • f9
  • f10
  • f11
  • f12
  • numlock
  • scrolllock
  • ;
  • semicolon
  • equal
  • =
  • ,
  • comma
  • dash
  • .
  • period
  • forwardslash
  • grave
  • [
  • openbracket
  • backslash
  • ]
  • closebracket
  • quote
  • dpadLeft
  • dpadRight
  • dpadUp
  • dpadDown
  • dpadCenter

Details

none
没有分配
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:391
back
返回键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:401
menu
菜单键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:409
backspace
退格键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:418
tab
Tab 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:427
enter
回车键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:436
shift
Shift 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:445
ctrl
Ctrl 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:454
alt
Alt 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:463
pause
暂停键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:472
capslock
大写锁定键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:481
escape
ESC 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:490
space
空格键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:499
pageup
向上翻页键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:508
pagedown
向下翻页键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:517
end
结束键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:526
home
主菜单键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:535
left
向左箭头键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:544
up
向上箭头键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:553
right
向右箭头键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:562
down
向下箭头键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:571
select
Select 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:580
insert
插入键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:589
Delete
删除键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:598
0
字母键盘上的 0 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:607
1
字母键盘上的 1 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:616
2
字母键盘上的 2 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:625
3
字母键盘上的 3 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:634
4
字母键盘上的 4 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:643
5
字母键盘上的 5 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:652
6
字母键盘上的 6 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:661
7
字母键盘上的 7 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:670
8
字母键盘上的 8 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:679
9
字母键盘上的 9 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:688
a
A 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:697
b
B 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:706
c
C 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:715
d
D 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:724
e
E 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:733
f
F 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:742
g
G 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:751
h
H 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:760
i
I 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:769
j
J 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:778
k
K 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:787
l
L 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:796
m
M 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:805
n
N 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:814
o
O 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:823
p
P 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:832
q
Q 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:841
r
R 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:850
s
S 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:859
t
T 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:868
u
U 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:877
v
V 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:886
w
W 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:895
x
X 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:904
y
Y 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:913
z
Z 键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:922
num0
数字键盘 0
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:931
num1
数字键盘 1
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:940
num2
数字键盘 2
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:949
num3
数字键盘 3
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:958
num4
数字键盘 4
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:967
num5
数字键盘 5
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:976
num6
数字键盘 6
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:985
num7
数字键盘 7
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:994
num8
数字键盘 8
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1003
num9
数字键盘 9
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1012
*
数字键盘 *
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1021
+
数字键盘 +
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1030
-
数字键盘 -
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1039
numdel
数字键盘删除键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1048
/
数字键盘 /
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1057
f1
F1 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1066
f2
F2 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1075
f3
F3 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1084
f4
F4 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1093
f5
F5 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1102
f6
F6 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1111
f7
F7 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1120
f8
F8 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1129
f9
F9 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1138
f10
F10 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1147
f11
F11 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1156
f12
F12 功能键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1165
numlock
数字锁定键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1174
scrolllock
滚动锁定键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1183
;
分号键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1192
semicolon
分号键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1201
equal
等于号键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1210
=
等于号键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1219
,
逗号键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1228
comma
逗号键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1237
dash
中划线键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1246
.
句号键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1255
period
句号键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1264
forwardslash
正斜杠键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1273
grave
按键 `
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1282
[
按键 [
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1291
openbracket
按键 [
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1300
backslash
反斜杠键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1309
]
按键 ]
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1318
closebracket
按键 ]
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1327
quote
单引号键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1336
dpadLeft
导航键 向左
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1347
dpadRight
导航键 向右
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1356
dpadUp
导航键 向上
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1365
dpadDown
导航键 向下
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1374
dpadCenter
导航键 确定键
metadescription
类型Number
定义于cocos2d/core/platform/CCMacro.js:1383