aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-04-27 23:06:23 +1000
committerGitHub <noreply@github.com>2023-04-27 15:06:23 +0200
commite92472edd1d414e34f20e2afd6f0b80ecbf0a643 (patch)
treeb0ec0f11262bf52421e3ef201d3f69b383af66a4 /src
parent63a44abbdc1f245d81d873744c3de1a02e4e5037 (diff)
downloadskyhanni-e92472edd1d414e34f20e2afd6f0b80ecbf0a643.tar.gz
skyhanni-e92472edd1d414e34f20e2afd6f0b80ecbf0a643.tar.bz2
skyhanni-e92472edd1d414e34f20e2afd6f0b80ecbf0a643.zip
Right click tool bind (#65)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Garden.java8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
index 5608102eb..392223d53 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
@@ -369,6 +369,7 @@ public class Garden {
@ConfigAccordionId(id = 8)
public Runnable keyBindPresetDisable = () -> {
keyBindAttack = Keyboard.KEY_NONE;
+ keyBindUseItem = Keyboard.KEY_NONE;
keyBindLeft = Keyboard.KEY_NONE;
keyBindRight = Keyboard.KEY_NONE;
keyBindForward = Keyboard.KEY_NONE;
@@ -384,6 +385,7 @@ public class Garden {
@ConfigAccordionId(id = 8)
public Runnable keyBindPresetDefault = () -> {
keyBindAttack = -100;
+ keyBindUseItem = -99;
keyBindLeft = Keyboard.KEY_A;
keyBindRight = Keyboard.KEY_D;
keyBindForward = Keyboard.KEY_W;
@@ -400,6 +402,12 @@ public class Garden {
public int keyBindAttack = -100;
@Expose
+ @ConfigOption(name = "Use Item", desc = "")
+ @ConfigAccordionId(id = 8)
+ @ConfigEditorKeybind(defaultKey = -99)
+ public int keyBindUseItem = -99;
+
+ @Expose
@ConfigOption(name = "Move Left", desc = "")
@ConfigAccordionId(id = 8)
@ConfigEditorKeybind(defaultKey = Keyboard.KEY_A)
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt
index 25491f068..7f70e6883 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCustomKeybinds.kt
@@ -20,6 +20,7 @@ object GardenCustomKeybinds {
init {
map[mcSettings.keyBindAttack] = { shConfig.keyBindAttack }
+ map[mcSettings.keyBindUseItem] = { shConfig.keyBindUseItem }
map[mcSettings.keyBindLeft] = { shConfig.keyBindLeft }
map[mcSettings.keyBindRight] = { shConfig.keyBindRight }
map[mcSettings.keyBindForward] = { shConfig.keyBindForward }