macro.KEY Enum

Module: cc 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:406
back

The back key

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

The menu key

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

The backspace key

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

The tab key

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

The enter key

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

The shift key

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

The ctrl key

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

The alt key

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

The pause key

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

The caps lock key

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

The esc key

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

The space key

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

The page up key

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

The page down key

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

The end key

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

The home key

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

The left key

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

The up key

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

The right key

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

The down key

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

The select key

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

The insert key

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

The Delete key

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The a key

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

The b key

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

The c key

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

The d key

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

The e key

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

The f key

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

The g key

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

The h key

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

The i key

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

The j key

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

The k key

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

The l key

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

The m key

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

The n key

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

The o key

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

The p key

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

The q key

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

The r key

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

The s key

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

The t key

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

The u key

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

The v key

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

The w key

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

The x key

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

The y key

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

The z key

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

The numeric keypad 0

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

The numeric keypad 1

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

The numeric keypad 2

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

The numeric keypad 3

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

The numeric keypad 4

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

The numeric keypad 5

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

The numeric keypad 6

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

The numeric keypad 7

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

The numeric keypad 8

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

The numeric keypad 9

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

The numeric keypad '*'

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

The numeric keypad '+'

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

The numeric keypad '-'

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

The numeric keypad 'delete'

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

The numeric keypad '/'

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

The F1 function key

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

The F2 function key

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

The F3 function key

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

The F4 function key

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

The F5 function key

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

The F6 function key

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

The F7 function key

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

The F8 function key

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

The F9 function key

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

The F10 function key

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

The F11 function key

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

The F12 function key

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

The numlock key

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

The scroll lock key

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

The ';' key.

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

The ';' key.

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

The '=' key.

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

The '=' key.

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

The ',' key.

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

The ',' key.

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

The dash '-' key.

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

The '.' key.

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

The '.' key

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

The forward slash key

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

The grave key

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

The '[' key

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

The '[' key

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

The '\' key

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

The ']' key

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

The ']' key

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

The quote key

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

The dpad left key

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

The dpad right key

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

The dpad up key

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

The dpad down key

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

The dpad center key

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

results matching ""

    No results matching ""