Class createjs.Touch
Defined in: touch.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A class that provides methods to start dispatching touch events to
createjs.Stage objects and to stop it.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
createjs.Touch.exports
A table of exported functions.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
createjs.Touch.disable(stage)
Stops dispatching touch events to the specified stage.
|
<static> |
createjs.Touch.enable(stage, opt_singleTouch, opt_allowDefault)
Starts dispatching touch events to the specified stage.
|
<static> |
createjs.Touch.isSupported()
Returns whether the host browser supports touch events.
|
Class Detail
createjs.Touch()
A class that provides methods to start dispatching touch events to
createjs.Stage objects and to stop it.
Field Detail
<static>
createjs.Touch.exports
A table of exported functions.
Method Detail
<static>
createjs.Touch.disable(stage)
Stops dispatching touch events to the specified stage.
- Parameters:
- {createjs.Stage} stage
<static>
createjs.Touch.enable(stage, opt_singleTouch, opt_allowDefault)
Starts dispatching touch events to the specified stage.
- Parameters:
- {createjs.Stage} stage
- {boolean=} opt_singleTouch
- {boolean=} opt_allowDefault
<static>
{boolean}
createjs.Touch.isSupported()
Returns whether the host browser supports touch events.
- Returns:
- {boolean}