Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MouseContext

MouseContext represents a single 'mode' of the game's mouse controls. For instance, you might have one context to use for the overworld, another for menus, another for inventory, etc.

You can set the active context through a MouseHandler's setContext(ctx) and clearContext() methods.

You can register multiple callbacks for onUp/onDown.

Hierarchy

  • MouseContext

Index

Methods

callOnMouseDown

callOnMouseUp

clearMouseDown

  • Clears a registered function for mousedown. If no callback is provided will clear all.

    Parameters

    Returns this

clearMouseUp

  • Clears a registered function for mouseup. If no callback is provided will clear all.

    Parameters

    Returns this

onMouseDown

onMouseUp

Generated using TypeDoc