1
0
forked from Clones/Controlify

🐛 Make the reset button act as an unbind button. (close #120)

This commit is contained in:
isXander
2023-07-27 20:22:58 +01:00
parent 1df7925109
commit 276cdff132
3 changed files with 3 additions and 15 deletions

View File

@ -169,9 +169,9 @@ public class ControllerBindingImpl<T extends ControllerState> implements Control
@Override
public Option.Builder<?> startYACLOption() {
Option.Builder<IBind<T>> option = Option.createBuilder((Class<IBind<T>>) (Class<?>) IBind.class)
Option.Builder<IBind<T>> option = Option.<IBind<T>>createBuilder()
.name(name())
.binding(defaultBind(), this::currentBind, this::setCurrentBind)
.binding(new EmptyBind<>(), this::currentBind, this::setCurrentBind)
.description(OptionDescription.of(this.description()));
if (controller instanceof GamepadController gamepad) {