1
0
forked from Clones/Controlify

whoops partial commit

This commit is contained in:
isXander
2023-05-14 22:56:02 +01:00
parent 460de0d73f
commit 546916fc12
3 changed files with 23 additions and 1 deletions

View File

@ -51,6 +51,7 @@ public class ControllerBindings<T extends ControllerState> {
CHANGE_PERSPECTIVE,
SWAP_HANDS,
OPEN_CHAT,
INV_SELECT, INV_QUICK_MOVE, INV_TAKE_HALF,
GUI_PRESS, GUI_BACK,
GUI_NEXT_TAB, GUI_PREV_TAB,
GUI_ABSTRACT_ACTION_1, GUI_ABSTRACT_ACTION_2,
@ -250,6 +251,24 @@ public class ControllerBindings<T extends ControllerState> {
.category(GUI_CATEGORY)
.context(BindContexts.GUI)
.build());
register(INV_SELECT = ControllerBindingBuilder.create(controller)
.identifier("controlify", "inv_select")
.defaultBind(GamepadBinds.A_BUTTON)
.category(INVENTORY_CATEGORY)
.context(BindContexts.INVENTORY)
.build());
register(INV_QUICK_MOVE = ControllerBindingBuilder.create(controller)
.identifier("controlify", "inv_quick_move")
.defaultBind(GamepadBinds.Y_BUTTON)
.category(INVENTORY_CATEGORY)
.context(BindContexts.INVENTORY)
.build());
register(INV_TAKE_HALF = ControllerBindingBuilder.create(controller)
.identifier("controlify", "inv_take_half")
.defaultBind(GamepadBinds.X_BUTTON)
.category(INVENTORY_CATEGORY)
.context(BindContexts.INVENTORY)
.build());
register(PICK_BLOCK = ControllerBindingBuilder.create(controller)
.identifier("controlify", "pick_block")
.defaultBind(GamepadBinds.DPAD_LEFT)