mojira.dev
MC-255800

(MacOS) Holding Control and pressing left click does a right click on macOS

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

migrated

As with MC-121772, the code I provide at https://github.com/hamarb123/mc-121772-examplefix can be used to fix this issue.

violine1101

See MC-59810, this is handled by the operating system and LWJGL.

FWIW this was not the case in some versions, see but reintroduced by an LWJGL update, see MC-121905.

migrated

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?

migrated

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.

migrated

(Unassigned)

Unconfirmed

(Unassigned)

1.19.2

Retrieved