Class cc.KeyboardDelegate
Extends
cc.Class.
Defined in: CCKeyboardDelegate.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
you must extend the keyboardDelegate and
implement your own game logic in
keydown and keyup functions
|
| Method Attributes | Method Name and Description |
|---|---|
|
Call back when a key is pressed down
|
|
|
onKeyUp()
Call back when a key is released
|
Class Detail
cc.KeyboardDelegate()
you must extend the keyboardDelegate and
implement your own game logic in
keydown and keyup functions
Method Detail
onKeyDown()
Call back when a key is pressed down
onKeyUp()
Call back when a key is released