Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-122421

Simultaneously pressing two keys introduces a delay for one of the keys pressed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Labels:
    • Environment:
      Linux
    • Confirmation Status:
      Community Consensus
    • Category:
      Input
    • Mojang Priority:
      Normal

      Description

      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!)

        Attachments

        1. keystroke-bug.mp4
          2.05 MB
        2. output.mp4
          9.57 MB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              hyperpony Selicre
              Votes:
              38 Vote for this issue
              Watchers:
              29 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: