The logic to be executed whenever the event that the handler is attached to gets triggered.
Optional
ref: stringProvides a way of identifying handlers so they can be easily retrieved later.
The logic to be executed whenever the event that the handler is attached to gets triggered.
The logic to be executed whenever the event that the handler is attached to gets triggered.
If false, then the handler should be skipped.
Provides a way of identifying handlers so they can be easily retrieved later.
Provides a way for setting the ref through a chained function call. For example:
keyboard.a.pressed.add(data => console.log(data)).withRef('key log');
The calling object.
The ref to set on the object.
Generated using TypeDoc
The ShimiHandler is designed to be added to ShimiEvents, containing some action to be called whenever the event is triggered.