macro.KEY Enum

Module: _decorator Parent Module: cc

Key map for keyboard event

Index

  • 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

None

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:393
back

The back key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:403

The menu key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:411
backspace

The backspace key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:420
tab

The tab key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:429
enter

The enter key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:438
shift

The shift key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:447
ctrl

The ctrl key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:456
alt

The alt key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:465
pause

The pause key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:474
capslock

The caps lock key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:483
escape

The esc key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:492
space

The space key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:501
pageup

The page up key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:510
pagedown

The page down key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:519
end

The end key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:528
home

The home key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:537
left

The left key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:546
up

The up key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:555

The right key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:564
down

The down key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:573
select

The select key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:582
insert

The insert key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:591
Delete

The Delete key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:600
0

The '0' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:609
1

The '1' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:618
2

The '2' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:627
3

The '3' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:636
4

The '4' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:645
5

The '5' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:654
6

The '6' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:663
7

The '7' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:672
8

The '8' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:681
9

The '9' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:690
a

The a key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:699
b

The b key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:708
c

The c key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:717
d

The d key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:726
e

The e key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:735
f

The f key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:744
g

The g key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:753
h

The h key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:762
i

The i key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:771
j

The j key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:780
k

The k key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:789
l

The l key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:798
m

The m key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:807
n

The n key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:816
o

The o key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:825
p

The p key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:834
q

The q key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:843
r

The r key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:852
s

The s key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:861
t

The t key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:870
u

The u key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:879
v

The v key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:888
w

The w key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:897
x

The x key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:906
y

The y key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:915
z

The z key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:924
num0

The numeric keypad 0

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:933
num1

The numeric keypad 1

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:942
num2

The numeric keypad 2

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:951
num3

The numeric keypad 3

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:960
num4

The numeric keypad 4

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:969
num5

The numeric keypad 5

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:978
num6

The numeric keypad 6

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:987
num7

The numeric keypad 7

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:996
num8

The numeric keypad 8

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1005
num9

The numeric keypad 9

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1014
*

The numeric keypad '*'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1023
+

The numeric keypad '+'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1032
-

The numeric keypad '-'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1041
numdel

The numeric keypad 'delete'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1050
/

The numeric keypad '/'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1059
f1

The F1 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1068
f2

The F2 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1077
f3

The F3 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1086
f4

The F4 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1095
f5

The F5 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1104
f6

The F6 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1113
f7

The F7 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1122
f8

The F8 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1131
f9

The F9 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1140
f10

The F10 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1149
f11

The F11 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1158
f12

The F12 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1167
numlock

The numlock key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1176
scrolllock

The scroll lock key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1185
;

The ';' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1194
semicolon

The ';' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1203
equal

The '=' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1212
=

The '=' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1221
,

The ',' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1230
comma

The ',' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1239
dash

The dash '-' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1248
.

The '.' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1257
period

The '.' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1266
forwardslash

The forward slash key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1275
grave

The grave key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1284
[

The '[' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1293
openbracket

The '[' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1302
backslash

The '\' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1311
]

The ']' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1320
closebracket

The ']' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1329
quote

The quote key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1338
dpadLeft

The dpad left key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1349
dpadRight

The dpad right key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1358
dpadUp

The dpad up key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1367
dpadDown

The dpad down key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1376
dpadCenter

The dpad center key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1385

results matching ""

    No results matching ""