SpaceCadetPinball
SpaceCadetPinball copied to clipboard
The game with flatpak version 2.0.1 on KDE Plasma repeats held keys
Hi, I just tried playing, and I noticed that when I hold down any of the keyboard keys, it performs the action the key is assigned to, but about half a second later while holding the key, the action starts repeating incredibly quickly. This causes the sound effect associated with the action to play repeatably quickly, and makes pulling back the plunger further impossible.
Hello, quite an interesting problem you have here. It would appear that SDL repeat key detection somehow fails on your system.
Flatpak release was recently redirected from 2.0.1 release to dev commit 10ff1143cc49268aca5e2537d3fc4bbc53a18d3c. This bug might have something to do with that. Check your pinball version number in Help->About dialog.
If you can, build and test the latest version of the game from source.
I am having the same issue both with 2.0.1 and 2.1.0 on Artix Linux in Sway (Wayland). The interesting part is that joystick and mouse work as intended, the problem only manifests with the keyboard.
This is an issue with event-based keyboard input in SDL. SDL also offers immediate keyboard input; I will look into adding it as an option.
Keyboard input jitter could also be caused by keyboard hardware fault and bad OS config. Try the game with different keyboard on the same OS. Try the game with the same keyboard and different OS.
I have tried the game on both my desktop and my laptop computer and both (with different keyboards and hardware) have the same problem. Besides, other games and programs work as intended.
I forgot to mention that my version of the game is not the flatpak one, it's compiled directly from source with the help of Arch's makepkg.