InputEvent

Module: engine.input

Class for mouse or touch event.

new game.InputEvent( )

Properties

_downItem Container

(No description yet)

_downTime Number

(No description yet)

_moveItem Container

(No description yet)

_upItem Container

(No description yet)

event MouseEvent|Touch

Original event.

id Number

Identifier number for touch event.

position Vector

Current position of the event in the screen.

Methods

get() InputEvent Static

Get input event from pool.

put(event) Static

Put input event to pool.

Parameters:

  • event InputEvent
reset()

Reset event values.

Attributes

pool Array

Pool for input events.

poolCount Number (Default: 20)

Number of objects created for the pool on startup.