-
Bug
-
Resolution: Fixed
-
Minecraft 17w47b, Minecraft 18w01a, Minecraft 18w02a, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.14, 1.14.4, 1.15 Pre-release 1, 1.15, 1.15.1 Pre-release 1, 1.15.2, 20w08a, 1.16.2, 1.16.3, 1.16.4, 20w51a, 1.16.5, 1.17.1, 1.18 Release Candidate 1, 1.18 Release Candidate 3, 1.18.1
-
Linux
-
Community Consensus
-
Input
-
Normal
When pressing two or more keys on the same frame/tick, one of them will only be considered pressed after a delay specified by xset r rate. Pressing another key while this delay happens entirely drops the key to be pressed.
This breaks sprinting, walking diagonally, and jumping forward.
Workaround: set the XMODIFIERS environment variable to "@im=null", or "@im=xim".
Fix:
1) apply the patch from here to the 3.2.2 source tree, and compile it (thanks, comment-608172)
2) add -Dorg.lwjgl.librarypath="/path/to/library/" to the launcher options (write the folder it's in, not the .so file itself)
If you do not want to bother with recompiling glfw, I have a precompiled binary for arch linux at https://i.selic.re/libglfw.so
(If a mod can confirm there's no malicious edits, that would be nice!)
- is duplicated by
-
MC-123862 Keyboard inputs are not registering correctly
- Resolved
-
MC-124187 Simultaneous movement key press not registering - Linux
- Resolved
-
MC-127979 Sprint and W delayed action if you press both at the same instant
- Resolved
-
MC-132195 Pressing multiple keys on Linux results in only one key being registered
- Resolved
-
MC-133989 Sometimes pressing W and CTRL at the exact same time freezes or delays forward movement
- Resolved
-
MC-135092 Pressing 2 keys at the same time causes only 1 key to be registered
- Resolved
-
MC-135686 starting to sprint hesitates
- Resolved
-
MC-137036 Linux: Key presses won't register for ~500 ms if two (or more) keys are pressed on the same frame
- Resolved
-
MC-137280 Keyboard Problem
- Resolved
-
MC-149114 Sprint not working properly in Linux (mc 1.13+)
- Resolved
-
MC-165087 Player sometimes won't move, when pressing W + Ctrl at the same time
- Resolved
-
MC-167573 When pressing two keys ingame at the same time causes other key press to be registered with a delay
- Resolved
-
MC-171348 movement lag when sprint control is rebound to Shift
- Resolved
-
MC-172297 When pressing more than one key, only one of them is triggered
- Resolved
-
MC-198808 Can't use two keys at once
- Resolved
-
MC-207017 Java for linux input delay
- Resolved
-
MC-209403 N-key rollover not working on linux
- Resolved
-
MC-211718 Sprint + W pressed on same tick delays movement
- Resolved
-
MC-211755 Minecraft delays certain inputs
- Resolved
-
MC-242855 On Linux, pressing and holding multiple keys at the same time may delay or prevent movement
- Resolved
-
MC-242922 Pressing W and CTRL at exact same time gives delay before moving
- Resolved
- relates to
-
MC-54194 Key press of simultanously pressed keys not recognized
- Resolved
- links to