1
0
forked from Clones/Controlify

✏️ Allow repeat events for drop key + drop stack

This commit is contained in:
isXander
2023-05-16 20:31:48 +01:00
parent 0adbccc498
commit c77f78b00e
5 changed files with 37 additions and 4 deletions

View File

@ -44,7 +44,7 @@ public class ControllerBindings<T extends ControllerState> {
JUMP, SNEAK,
ATTACK, USE,
SPRINT,
DROP,
DROP, DROP_STACK,
NEXT_SLOT, PREV_SLOT,
PAUSE,
INVENTORY,
@ -172,6 +172,12 @@ public class ControllerBindings<T extends ControllerState> {
.category(GAMEPLAY_CATEGORY)
.context(BindContexts.INGAME, BindContexts.INVENTORY)
.build());
register(DROP_STACK = ControllerBindingBuilder.create(controller)
.identifier("controlify", "drop_stack")
.defaultBind(new EmptyBind<>())
.category(GAMEPLAY_CATEGORY)
.context(BindContexts.INGAME)
.build());
register(NEXT_SLOT = ControllerBindingBuilder.create(controller)
.identifier("controlify", "next_slot")
.defaultBind(GamepadBinds.RIGHT_BUMPER)