SpaceCadetPinball icon indicating copy to clipboard operation
SpaceCadetPinball copied to clipboard

The game with flatpak version 2.0.1 on KDE Plasma repeats held keys

Open ghost opened this issue 2 years ago • 5 comments

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.

ghost avatar Feb 11 '23 13:02 ghost

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.

k4zmu2a avatar Feb 12 '23 06:02 k4zmu2a

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.

Yaroslav-95 avatar Dec 04 '23 15:12 Yaroslav-95

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.

k4zmu2a avatar Dec 09 '23 04:12 k4zmu2a

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.

Yaroslav-95 avatar Dec 09 '23 13:12 Yaroslav-95

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.

Yaroslav-95 avatar Dec 09 '23 13:12 Yaroslav-95