Key of the current binding set.
Current binding set, that will be reset upon demand.
Some timer
Some timer
Every currently listening signals (binding sets).
Adds a list of controls to listen to, also adding them to a binding set.
Some controls to add.
Some parameters for these controls.
Binds a callback for button A that will be unbound on use.
The callback to call.
Some parameters for these controls.
Handles the loop_config
param
Controls getting added
Parameters to apply to these controls
Checks if a sequence of given buttons is down till the one before the last of the given list.
the sequence of buttons.
returns whether the sequence of buttons till the one before the last is down.
Detachs a binding set based on a key.
A set index
Add a listener/event for the controls passed.
Controls to listen for.
Whether the controls have to persist.
Whether the controls will be called once.
Finds the next usable index of the persisting bindings. we could also simply use .length
Stops the loop timers and removes the current listeners.
Whether to removes the current listeners
Registers a new loop timer.
Callback to call at each tick
Ticks length
Sfx to play at each tick
Stops the loop timers.
Generated using TypeDoc
This class allows to bind callbacks to gamepad buttons. For permanent bindings, set "persist" to true when adding controls. Permanent bindings are kept even if you call ControlManager.reset. Otherwise, set "persist" to false, then these controls will be disabled after ControlManager.reset is called.