Class cc.TouchHandler
- Defined in: CCTouchHandler.js
- Extends cc.Class
Constructor Attributes | Constructor Name and Description |
---|---|
cc.TouchHandler
Object than contains the delegate and priority of the event handler.
|
Method Summary
Class Detail
cc.TouchHandler()
cc.TouchHandler
Object than contains the delegate and priority of the event handler.
Method Detail
-
Create a TouchHandler with a delegate and a priority
- Parameters:
- {cc.TouchDelegate} delegate
- {Number} priority
- Returns:
- {cc.TouchHandler}
-
{cc.TouchDelegate} getDelegate()
- Returns:
- {cc.TouchDelegate}
-
{Number} getEnabledSelectors()Enabled selectors
- Returns:
- {Number}
-
{Number} getPriority()
- Returns:
- {Number}
-
{Boolean} initWithDelegate(delegate, priority)initializes a TouchHandler with a delegate and a priority
- Parameters:
- {cc.TouchDelegate} delegate
- {Number} priority
- Returns:
- {Boolean}
-
setDelegate(delegate)
- Parameters:
- {cc.TouchDelegate} delegate
-
setEnalbedSelectors(value)
- Parameters:
- {Number} value
-
setPriority(priority)
- Parameters:
- {Number} priority