Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides access to mouse events.

Hierarchy

  • MouseControls

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

isDown

isDown: boolean

Whether the mouse button is down.

pos

pos: Vec

Position of the mouse.

pressed

pressed: boolean

Whether the mouse button was just pressed.

released

released: boolean

Whether the mouse button was just released.

Methods

update

  • update(): void