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

@ -65,8 +65,7 @@ public class ControllerBindings<T extends ControllerState> {
VMOUSE_SHIFT,
VMOUSE_TOGGLE,
GUI_NAVI_UP, GUI_NAVI_DOWN, GUI_NAVI_LEFT, GUI_NAVI_RIGHT,
CYCLE_OPT_FORWARD, CYCLE_OPT_BACKWARD,
CLEAR_BINDING;
CYCLE_OPT_FORWARD, CYCLE_OPT_BACKWARD;
private final Map<ResourceLocation, ControllerBinding> registry = new LinkedHashMap<>();
@ -397,12 +396,6 @@ public class ControllerBindings<T extends ControllerState> {
.category(GUI_CATEGORY)
.context(BindContexts.GUI)
.build());
register(CLEAR_BINDING = ControllerBindingBuilder.create(controller)
.identifier("controlify", "clear_binding")
.defaultBind(GamepadBinds.RIGHT_STICK_PRESS)
.category(GUI_CATEGORY)
.context(BindContexts.CONTROLIFY_CONFIG)
.build());
for (var constructor : CUSTOM_BINDS.values()) {
register(constructor.apply(this));