Invokes a registered callback for mousedown
MouseHandlerEvent
Invokes a registered callback for mouseup
MouseHandlerEvent
Clears a registered function for mousedown. If no callback is provided will clear all.
The callback to clear.
Clears a registered function for mouseup. If no callback is provided will clear all.
The callback to clear.
Registers a callback for a mousedown event.
The function to call on mousedown
this
Registers a callback for a mouseup event.
The function to call on mousedown
this
Generated using TypeDoc
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.