Class Input

Hierarchy

  • Input

Constructors

Properties

isMousePrimaryButtonDown: boolean = false
keysDown: Set<string> = ...
keysUp: Set<string> = ...
mouseClientPosition: Vector2 = ...

The current integer mouse position on canvas pixel coordinate.

Property

mouseLocalPosition: Vector2 = ...

The current integer mouse position on canvas grid coordinate.

mousePreciseLocalPosition: Vector2 = ...

The current decimal mouse position on canvas grid coordinate.

mousePreciseWorldPosition: Vector2 = ...

The current decimal mouse position on world grid coordinate.

Property

mouseScrollDelta: Vector2 = ...

The current mouse scroll wheel delta. Positive number is up, negative is down and zero is for none.

Property

mouseWorldPosition: Vector2 = ...

The current integer mouse position on world grid coordinate.

Property

Methods

  • Parameters

    • keyCode: string

    Returns boolean

  • Parameters

    • keyCode: string

    Returns boolean