API Docs for: 2.2.1
Show:

InteractionManager Class

The interaction manager deals with mouse and touch events. Any DisplayObject can be interactive if its interactive parameter is set to true This manager also supports multitouch.

Constructor

InteractionManager

(
  • stage
)

Parameters:

  • stage Stage

    The stage to handle interactions

Properties

currentCursorStyle

String

The css style of the cursor that is being used

last

Float

mouse

InteractionData

The mouse data

mouseOut

Bool

Is set to true when the mouse is moved out of the canvas

Default: false

mouseoverEnabled

Bool

Default: true

onMouseDown

InteractionData -> Void

onMouseMove

InteractionData -> Void

onMouseOut

InteractionData -> Void

onMouseUp

InteractionData -> Void

onTouchEnd

InteractionData -> Void

onTouchMove

InteractionData -> Void

onTouchStart

InteractionData -> Void

pool

Array

Tiny little interactiveData pool !

resolution

Float

stage

Stage

A reference to the stage

touches

Dynamic

An object that stores current touches (InteractionData) by id reference