Godot: Persistent Input key pressed Bug/Glitch

Created on 24 May 2018  路  5Comments  路  Source: godotengine/godot

Godot version:
3.0.2

OS/device including version:
Windows 7 x64 RX 470

Issue description:
Input is Stuck

Steps to reproduce:
Greetings everyone, I would just like to share that I've notice some bug and there are 3 ways to reproduce this issue. For example if you are player and is moving using move_and_slide or position movement.

If Godot or your computer freezes or hangs for a bit, the input is stuck and is being read as key pressed. Another way to reproduce this is when you drag around the window of running godot game while moving(which makes it stutter), the Input also ends up stuck. Lastly, the easiest way to reproduce this issue is when you rapidly press shift+key (which enables sticky key for windows), The input key pressed ends up stuck.

Also, just wanted to follow up, there are cases that when if godot stutters/hangs, it seems to skip some frames/cycles of the code and causes inaccurate calculation which I'm not sure if its normal.

bug windows input

Most helpful comment

Godot version:
3.1.10.alpha
OS
Windows 10 x64

The issue persists.

All 5 comments

Godot version:
3.1.10.alpha
OS
Windows 10 x64

The issue persists.

I think I'm running into this as well, possibly with when keys are held and the game is paused and unpaused.

I've also noticed this issue if I very quickly tap then release the key. However, I'm on linux. I use arch btw... you know in case that's relevant.

@guilhermefelipecgs Curious if you might have some insights into the input handling. Have you encountered anything like this?

I made a PR to try to fix this issue, but I only tested on Linux, can someone test it on Windows please?

Was this page helpful?
0 / 5 - 0 ratings