tetrio / issues

Report issues and discuss improvements / feature requests around TETR.IO
https://tetr.io
387 stars 21 forks source link

Key reactivation timer for double, triple and multiple clicks #1302

Open LavaLavaa opened 1 month ago

LavaLavaa commented 1 month ago

Checklist

Is your feature request related to a problem? Please describe.

Hi, so my keyboard is broken right now and sometimes when I press certain keys just once, there's a small chance that that key will be doubly or even triply pressed on the computer.

So for example when in game, I would press space to hard drop, but sometimes the game will register two or three inputs of space at once, making me misdrop catastrophically by hard dropping multiple times at once (lost way too many games due to this).

Describe the solution you'd like

It would be nice if there is a option for key reactivation timer. What I mean is when the game detects the same key is pressed multiple times (like when my keyboard is double clicking), it will not register any subsequent inputs after the first one until the delay is over.

So for example when I press space and my keyboard sends 3 inputs for the space key, the game will accept the first input and start a timer (say 0.1 seconds for example, duration of timer can be changed in settings). And then the subsequent 2 inputs will not be accepted because the timer from the first input is still active. Then any inputs for the space key after the timer has ended will be accepted again.

Describe alternatives you've considered

I have been temporarily solving this problem by rebinding my controls to keys that do not suffer from double clicking, however I have found out that after a while the keys set to the new keybinds would start double clicking again. However I am starting to run out of keys to set new keybinds and so I am seeking a more permanent solution.

If possible I would like to buy a new keyboard but I can not afford it right now.

Additional context

Keybinds that I have noticed this issue on: hard drop, clockwise rotation, counterclockwise rotation, 180 rotation. Maybe softdrop, left right movement and other keys suffer from this too but I do not notice it since it doesn't really matter if it double clicks or not (maybe it does affect left right movement but my handling settings is very fast so i don't really notice it).

In the end this is more of a personal issue of mine so I understand if it won't be considered but I would really appreciate it if something like this can be added.