Mouse button binding fixed

Also, make the extra info in tooltips use the sneak keybind.
This commit is contained in:
Ben Spiers committed 2014-09-11 04:05:45 +01:00
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;