From 66bf122138d65085d59cfedd8b4ba1dfcf327a5a Mon Sep 17 00:00:00 2001 From: Alexdoru <57050655+Alexdoru@users.noreply.github.com> Date: Fri, 27 Jan 2023 20:33:01 +0100 Subject: [PATCH] keybinds (#67) * unbind keybinds by default * spotless --- src/main/java/tconstruct/client/ArmorControls.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/tconstruct/client/ArmorControls.java b/src/main/java/tconstruct/client/ArmorControls.java index 4998cac4..d7d0991a 100644 --- a/src/main/java/tconstruct/client/ArmorControls.java +++ b/src/main/java/tconstruct/client/ArmorControls.java @@ -13,6 +13,7 @@ import net.minecraft.client.settings.KeyBinding; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.potion.Potion; +import org.lwjgl.input.Keyboard; import tconstruct.TConstruct; import tconstruct.armor.ArmorProxyClient; import tconstruct.armor.ArmorProxyCommon; @@ -27,11 +28,11 @@ public class ArmorControls { public static final String keybindCategory = "tconstruct.keybindings"; public static final String[] keyDescs = new String[] {"key.tarmor", "key.tgoggles", "key.tbelt", "key.tzoom"}; - public static KeyBinding armorKey = new KeyBinding(keyDescs[0], 24, keybindCategory); - public static KeyBinding toggleGoggles = new KeyBinding(keyDescs[1], 34, keybindCategory); - public static KeyBinding beltSwap = new KeyBinding(keyDescs[2], 48, keybindCategory); - public static KeyBinding zoomKey = - new KeyBinding(keyDescs[3], 44, keybindCategory); // TODO: Make this hold, not toggle + public static KeyBinding armorKey = new KeyBinding(keyDescs[0], Keyboard.KEY_NONE, keybindCategory); + public static KeyBinding toggleGoggles = new KeyBinding(keyDescs[1], Keyboard.KEY_NONE, keybindCategory); + public static KeyBinding beltSwap = new KeyBinding(keyDescs[2], Keyboard.KEY_NONE, keybindCategory); + // TODO: Make this hold, not toggle + public static KeyBinding zoomKey = new KeyBinding(keyDescs[3], Keyboard.KEY_NONE, keybindCategory); static KeyBinding jumpKey; static KeyBinding invKey; static Minecraft mc;