mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Mouse button binding fixed
Also, make the extra info in tooltips use the sneak keybind.
This commit is contained in:
1 parent
2326048750
commit
83d9ecaf23
8 files changed
+42
-16
No files matched your search
@@ -46,6 +46,12 @@ public abstract class MekKeyHandler
|
||||
isDummy = true;
|
||||
}
|
||||
|
||||
public static boolean getIsKeyPressed(KeyBinding keyBinding)
|
||||
{
|
||||
int keyCode = keyBinding.getKeyCode();
|
||||
return keyCode < 0 ? Mouse.isButtonDown(keyCode + 100) : Keyboard.isKeyDown(keyCode);
|
||||
}
|
||||
|
||||
public KeyBinding[] getKeyBindings ()
|
||||
{
|
||||
return keyBindings;
|
||||
|
||||
Reference in new issue
Block a user