Private audioPrivate Optional current_Key of the current binding set.
Private current_Current binding set, that will be reset upon demand.
Private disabledPrivate gamePrivate gamepadPrivate loop_Some timer
Private loop_Some timer
Private signal_Every currently listening signals (binding sets).
Private initializedAdds a list of controls to listen to, also adding them to a binding set.
Some controls to add.
Optional params: ControlParamsSome parameters for these controls.
Binds a callback for button A that will be unbound on use.
The callback to call.
Optional params: SimpleControlParamsSome parameters for these controls.
Private apply_Handles the loop_config param
Controls getting added
Parameters to apply to these controls
Private check_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.
Private enable_Add a listener/event for the controls passed.
Controls to listen for.
Optional persist: booleanWhether the controls have to persist.
Optional call_once: booleanWhether the controls will be called once.
Private make_Private start_Private stop_
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.