SimpleControlParams: {
    confirm_only?: boolean;
    no_initial_reset?: boolean;
    persist?: boolean;
    reset_on_press?: boolean;
    sfx?: string;
}

Type declaration

  • Optional confirm_only?: boolean

    If true, only button A will receive the callback. Otherwise button B also receives.

  • Optional no_initial_reset?: boolean

    Whether to reset the current controls before attaching new ones. Only works for controls set with "persist" false. When setting this to true, use it wiselly.

  • Optional persist?: boolean

    Whether the bindings set must persist even if ControlManager.reset is called. If true, ControlManager.detach_bindings need to be called to disable these controls.

  • Optional reset_on_press?: boolean

    Will reset all controls that were set together upon this button press. Double check it usage when "no_initial_reset" was set to true in further controls. Only works if "persist" is false.

  • Optional sfx?: string

    The sfx to be played upon button pressed.