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:425
back

The back key

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

The menu key

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

The backspace key

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

The tab key

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

The enter key

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

The shift key

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

The ctrl key

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

The alt key

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

The pause key

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

The caps lock key

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

The esc key

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

The space key

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

The page up key

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

The page down key

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

The end key

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

The home key

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

The left key

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

The up key

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

The right key

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

The down key

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

The select key

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

The insert key

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

The Delete key

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The a key

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

The b key

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

The c key

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

The d key

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

The e key

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

The f key

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

The g key

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

The h key

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

The i key

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

The j key

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

The k key

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

The l key

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

The m key

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

The n key

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

The o key

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

The p key

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

The q key

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

The r key

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

The s key

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

The t key

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

The u key

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

The v key

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

The w key

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

The x key

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

The y key

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

The z key

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

The numeric keypad 0

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

The numeric keypad 1

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

The numeric keypad 2

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

The numeric keypad 3

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

The numeric keypad 4

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

The numeric keypad 5

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

The numeric keypad 6

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

The numeric keypad 7

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

The numeric keypad 8

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

The numeric keypad 9

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

The numeric keypad '*'

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

The numeric keypad '+'

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

The numeric keypad '-'

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

The numeric keypad 'delete'

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

The numeric keypad '/'

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

The F1 function key

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

The F2 function key

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

The F3 function key

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

The F4 function key

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

The F5 function key

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

The F6 function key

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

The F7 function key

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

The F8 function key

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

The F9 function key

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

The F10 function key

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

The F11 function key

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

The F12 function key

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

The numlock key

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

The scroll lock key

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

The ';' key.

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

The ';' key.

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

The '=' key.

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

The '=' key.

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

The ',' key.

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

The ',' key.

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

The dash '-' key.

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

The '.' key.

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

The '.' key

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

The forward slash key

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

The grave key

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

The '[' key

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

The '[' key

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

The '\' key

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

The ']' key

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

The ']' key

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

The quote key

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

The dpad left key

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

The dpad right key

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

The dpad up key

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

The dpad down key

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

The dpad center key

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

results matching ""

    No results matching ""