Class cc.KeyboardHandler
Extends
cc.Class.
Defined in: CCKeyboardDelegate.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KeyboardHandler is an object that contains KeyboardDelegate
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.KeyboardHandler.create(delegate)
Create a KeyboardHandler with KeyboardDelegate
|
returns the keyboard delegate
|
|
initWithDelegate(delegate)
initializes a cc.KeyboardHandler with a delegate
|
|
setDelegate(delegate)
set the keyboard delegate
|
Method Detail
<static>
{cc.KeyboardHandler}
cc.KeyboardHandler.create(delegate)
Create a KeyboardHandler with KeyboardDelegate
- Parameters:
- delegate
- Returns:
- {cc.KeyboardHandler}
{cc.KeyboardDelegate}
getDelegate()
returns the keyboard delegate
- Returns:
- {cc.KeyboardDelegate}
{Boolean}
initWithDelegate(delegate)
initializes a cc.KeyboardHandler with a delegate
- Parameters:
- {cc.KeyboardDelegate} delegate
- Returns:
- {Boolean}
setDelegate(delegate)
set the keyboard delegate
- Parameters:
- {cc.KeyboardDelegate} delegate