mojira.dev
MC-131319

Rebinding mouse attack key action to a keyboard prevents from sending constant "attack" action

if you keep your mouse left button pressed you can mine blocks which you can mine instantly with a tool very quickly. However if you rebind that action to a key on a keyboard - you can only mine blocks once in a while.

Also - if you aim at the air, pressing a mouse key doesn't involve having any extra animations, but doing the same with a rebound keyboard key - keeps "reloading" a tool every half a second or so.

Linked issues

Comments

KamiADN

This must be related to MC-118107 

gnembon

Yes, I did rebind it to Q. I have to check. If that's the case I guess the case is closed. But I used the same setup (with Q) in 1.12 with no problems. I guess it might be a recurring issue.

gnembon

Ok, checked with other keys - all react the same way. It would be nice actually if different keys had different repeat pattern, but currently you can only achieve continous press with the actual mouse...

KamiADN

Also, one way to avoid this strange behavior is to hold down the first key and simply press another key. For example, hold "e" (linked to breaking blocks) and then jump with space. If you have not released the "e" key, it works as it should.... I think this has happened since the LWJGL was updated in one of the early snapshots of 1.13.

gnembon

(Unassigned)

Unconfirmed

Minecraft 1.13-pre1

Retrieved