Affects every version of Minecraft I tested (I tested back to 1.8.9),
I noticed this issue ages ago and assumed it was already reported on here, but I couldn't find one (lmk if this is a duplicate, I looked pretty thoroughly).
Whenever the control key is pressed on macOS, and then a left click is done, it actually does a right click, this is really annoying when using the default controls for Minecraft on macOS with a mouse.
Comments


Thanks for you reply,
If this is caused by LWJGL (which is my suspicion), this (or one of the others) should still be left open as it is a serious flaw in the input in Minecraft. It means that by sprinting you can no longer left click, which is ridiculous - is that not a bug?

This should be resolved as works as intended instead. I had a look at the input code for this and discovered that it was actually done by Minecraft in the input code. I think this is bad since, as I said, this makes using the default controls basically not playable on a real mouse. This should be (imo) removed or an option, since it makes it impossible to sprint and left click on a normal mouse, but can be somewhat useful on a trackpad (not useful enough imo to make the game substantially worse on macOS when using a mouse compared to other platforms).
Edit: fabric function name that implements this - Mouse.onMouseButton
Edit 2: I am copying this message to the one I'm apparently a duplicate of.
As with MC-121772, the code I provide at https://github.com/hamarb123/mc-121772-examplefix can be used to fix this issue.