EaselJS

EaselJS  0.4.1

EaselJS > EaselJS > Touch
Search:
 
Filters

static Class Touch

Global utility for working with touch enabled devices in EaselJS.

Methods

_findPrimaryTouch

protected void _findPrimaryTouch ( stage , touches )
Parameters:
stage <Stage>
touches <Array[Touch]>
Returns: void

_handleTouchEnd

protected void _handleTouchEnd ( stage , e )
Parameters:
stage <Stage>
e <TouchEvent>
Returns: void

_handleTouchMove

protected void _handleTouchMove ( stage , e )
Parameters:
stage <Stage>
e <TouchEvent>
Returns: void

_handleTouchStart

protected void _handleTouchStart ( stage , e )
Parameters:
stage <Stage>
e <TouchEvent>
Returns: void

enable

static void enable ( stage )
Enables touch interaction for the specified EaselJS stage. This currently only supports iOS, and simply maps single touch events to the existing EaselJS mouse events.
Parameters:
stage <Stage> The stage to enable touch on.
Returns: void

isSupported

static Boolean isSupported ( )
Enables touch interaction for the specified EaselJS stage. This currently only supports iOS, and simply maps single touch events to the existing EaselJS mouse events.
Returns: Boolean
A boolean indicating whether touch is supported in the current environment.