Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MouseHandler

Represents a global mouse. Will likely only create one per app.

You can bind/switch MouseContexts to the MouseHandler to change input 'modes'.

Hierarchy

  • MouseHandler

Index

Constructors

constructor

Methods

clearContext

  • clearContext(): this

getPos

isMouseDown

  • isMouseDown(mouseButton?: number): boolean
  • Returns true if the given mouse button is down.

    Parameters

    • Default value mouseButton: number = 0

      number - Default 0 for left click.

    Returns boolean

setContext

Generated using TypeDoc