API

Interface IActionEvent

Interface used to define ActionEvent

interface IActionEvent {
    additionalData?: any;
    meshUnderPointer: Nullable<AbstractMesh>;
    pointerX: number;
    pointerY: number;
    source: any;
    sourceEvent?: any;
}

Implemented by

Index
additionalData?: any

additional data for the event

meshUnderPointer: Nullable<AbstractMesh>

The mesh that is currently pointed at (can be null)

pointerX: number

The X mouse cursor position at the time of the event

pointerY: number

The Y mouse cursor position at the time of the event

source: any

The mesh or sprite that triggered the action

sourceEvent?: any

the original (browser) event that triggered the ActionEvent