-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input: When a button is quickly pressed and released and the game lags it doesn't get released [Linux] #27104
Comments
the game doesn't have to lag I'm getting this normally when I press a key very very fast |
Does this occur if you call |
@Calinou that seems to fix the issue thank you. |
For the record, accumulated input was enabled by default because of #26395. Maybe accumulated input should only affect mouse input? I'm not sure if this is feasible though. |
I've seen this in the TPS demo, both in game and in editor (freelook mode), sometimes the movement keys will get stuck going in one direction even when released. I then need to repress and release to stop perpetual movement. I've seen it both in 3.1 and the current master branch BTW. |
I saw this getting stuck in my own game when I was beginning working on the sky, and therefore occasionally had very low FPS. 3.1.1. |
Maybe related, or maybe I should create an other issue (I use Windows 7):
|
@starry-abyss You should create another issue for this, as it's not related to input accumulation. To solve this, Godot could be made to release all keys when the window loses focus. |
Godot version:
master
OS/device including version:
Linux 4.19, debian stable
Steps to reproduce:
Update the number in the loop I made inside _process(delta), so that your game lags when you move. Then press an arrow button and release it immediately. If you succeed, the sprite will continue to move and you'll have to press and release again the same button to stop it.
Minimal reproduction project:
project.zip
The text was updated successfully, but these errors were encountered: