Cocos Creator API

1.4.x

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

Enum KEY

Module: cc

Key map for keyboard event

none Number readOnly

None

back Number readOnly

The back key

menu Number readOnly

The menu key

backspace Number readOnly

The backspace key

tab Number readOnly

The tab key

enter Number readOnly

The enter key

shift Number readOnly

The shift key

ctrl Number readOnly

The ctrl key

alt Number readOnly

The alt key

pause Number readOnly

The pause key

capslock Number readOnly

The caps lock key

escape Number readOnly

The esc key

space Number readOnly

The space key

pageup Number readOnly

The page up key

pagedown Number readOnly

The page down key

end Number readOnly

The end key

home Number readOnly

The home key

left Number readOnly

The left key

up Number readOnly

The up key

right Number readOnly

The right key

down Number readOnly

The down key

select Number readOnly

The select key

insert Number readOnly

The insert key

Delete Number readOnly

The Delete key

0 Number readOnly

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

1 Number readOnly

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

2 Number readOnly

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

3 Number readOnly

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

4 Number readOnly

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

5 Number readOnly

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

6 Number readOnly

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

7 Number readOnly

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

8 Number readOnly

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

9 Number readOnly

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

a Number readOnly

The a key

b Number readOnly

The b key

c Number readOnly

The c key

d