forked from Clones/Controlify
✏️ Move button guide to screen processor + vmouse improvements
This commit is contained in:
@ -8,9 +8,10 @@ public final class BindContexts {
|
||||
public static final BindContext
|
||||
INGAME = ctx("ingame"),
|
||||
GUI = ctx("gui"),
|
||||
GUI_VMOUSE = ctx("gui_vmouse"),
|
||||
GUI_VMOUSE_CURSOR_ONLY = ctx("gui_vmouse_cursor"),
|
||||
GUI_VMOUSE = ctx("gui_vmouse", GUI_VMOUSE_CURSOR_ONLY),
|
||||
CONTROLIFY_CONFIG = ctx("controlify_config", GUI),
|
||||
INVENTORY = ctx("inventory", GUI_VMOUSE);
|
||||
INVENTORY = ctx("inventory", GUI_VMOUSE_CURSOR_ONLY);
|
||||
|
||||
private static BindContext ctx(String path, BindContext... parents) {
|
||||
return new BindContext(Controlify.id(path), Set.of(parents));
|
||||
|
@ -275,25 +275,25 @@ public class ControllerBindings<T extends ControllerState> {
|
||||
.identifier("controlify", "vmouse_move_up")
|
||||
.defaultBind(GamepadBinds.LEFT_STICK_FORWARD)
|
||||
.category(VMOUSE_CATEGORY)
|
||||
.context(BindContexts.GUI_VMOUSE)
|
||||
.context(BindContexts.GUI_VMOUSE_CURSOR_ONLY)
|
||||
.build());
|
||||
register(VMOUSE_MOVE_DOWN = ControllerBindingBuilder.create(controller)
|
||||
.identifier("controlify", "vmouse_move_down")
|
||||
.defaultBind(GamepadBinds.LEFT_STICK_BACKWARD)
|
||||
.category(VMOUSE_CATEGORY)
|
||||
.context(BindContexts.GUI_VMOUSE)
|
||||
.context(BindContexts.GUI_VMOUSE_CURSOR_ONLY)
|
||||
.build());
|
||||
register(VMOUSE_MOVE_LEFT = ControllerBindingBuilder.create(controller)
|
||||
.identifier("controlify", "vmouse_move_left")
|
||||
.defaultBind(GamepadBinds.LEFT_STICK_LEFT)
|
||||
.category(VMOUSE_CATEGORY)
|
||||
.context(BindContexts.GUI_VMOUSE)
|
||||
.context(BindContexts.GUI_VMOUSE_CURSOR_ONLY)
|
||||
.build());
|
||||
register(VMOUSE_MOVE_RIGHT = ControllerBindingBuilder.create(controller)
|
||||
.identifier("controlify", "vmouse_move_right")
|
||||
.defaultBind(GamepadBinds.LEFT_STICK_RIGHT)
|
||||
.category(VMOUSE_CATEGORY)
|
||||
.context(BindContexts.GUI_VMOUSE)
|
||||
.context(BindContexts.GUI_VMOUSE_CURSOR_ONLY)
|
||||
.build());
|
||||
register(VMOUSE_LCLICK = ControllerBindingBuilder.create(controller)
|
||||
.identifier("controlify", "vmouse_lclick")
|
||||
@ -335,7 +335,7 @@ public class ControllerBindings<T extends ControllerState> {
|
||||
.identifier("controlify", "vmouse_toggle")
|
||||
.defaultBind(GamepadBinds.BACK)
|
||||
.category(VMOUSE_CATEGORY)
|
||||
.context(BindContexts.GUI_VMOUSE)
|
||||
.context(BindContexts.GUI_VMOUSE, BindContexts.GUI)
|
||||
.build());
|
||||
register(GUI_NAVI_UP = ControllerBindingBuilder.create(controller)
|
||||
.identifier("controlify", "gui_navi_up")
|
||||
|
Reference in New Issue
Block a user