EDIT: Looked into the 1.7.4 code in class 'awe' (or GuiScreen). Seems that you splitted the method into two methods, but I think that should still work: (last row in class (for me in jdgui)): public static boolean p() { return (Keyboard.isKeyDown(42)) || (Keyboard.isKeyDown(54)); } Change 42 to 29 and 54 to 220 since these are the meta keys on mac and if you press the meta key + q minecraft closes. Please fix this bug in 1.7.5, thanks, Alex 🙂
Old comment: Solved! The issue was that you used Keyboard.isKeyDown(219) what is the meta key and not the control key in the boolean isCtrlKeyDown(). The class name is (well for me with Minecraft MCP 1.6.4) GuiScreen.java. The issue is in the public boolean isCtrlKeyDown() So the boolean should actually look like this: public static boolean isCtrlKeyDown() { return Minecraft.isRunningOnMac ? Keyboard.isKeyDown(29)
Keyboard.isKeyDown(157)) Tried that out and it worked for me 🙂 So it seems that there is no difference between mac and windows keyboard in lwjgl 2.9 so you could skip the if clause actually
Please fix the bug in Minecraft 1.7.3 because it really annoys a lot mac users especially when pvping.
EDIT: Looked into the 1.7.4 code in class 'awe' (or GuiScreen). Seems that you splitted the method into two methods, but I think that should still work:
(last row in class (for me in jdgui)):
public static boolean p()
{
return (Keyboard.isKeyDown(42)) || (Keyboard.isKeyDown(54));
}
Change 42 to 29 and 54 to 220 since these are the meta keys on mac and if you press the meta key + q minecraft closes. Please fix this bug in 1.7.5, thanks, Alex 🙂
Old comment:
Solved!
The issue was that you used Keyboard.isKeyDown(219) what is the meta key and not the control key in the boolean isCtrlKeyDown(). The class name is (well for me with Minecraft MCP 1.6.4) GuiScreen.java.
The issue is in the public boolean isCtrlKeyDown()
So the boolean should actually look like this:
public static boolean isCtrlKeyDown() {
return Minecraft.isRunningOnMac ? Keyboard.isKeyDown(29)
Keyboard.isKeyDown(157) : Keyboard.isKeyDown(29)
Keyboard.isKeyDown(157);
}
(in: return Minecraft.isRunningOnMac ? Keyboard.isKeyDown(29)
Keyboard.isKeyDown(157))
Tried that out and it worked for me 🙂
So it seems that there is no difference between mac and windows keyboard in lwjgl 2.9 so you could skip the if clause actually
Please fix the bug in Minecraft 1.7.3 because it really annoys a lot mac users especially when pvping.
Thanks in advance,
A happy Minecraft player and coder 🙂
PS: wtf I'm only 14 and found out how to fix that bug 😛
PS2: LWJGL keys from here: http://minecraft.gamepedia.com/Key_codes