You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to reproduce this. The issue is that the Wayland backend uses a boolean flag to set/unset the repeat system and it's cleared as soon as any of the pressed keys are released, even if the released key isn't the one being repeated.
The repeated key needs to be tracked and the repeat flag cleared only when that particular key is released. I'll have a patch for it soon.
When using the wayland backend, the SDL_KEYDOWN produced by the keyboard auto-repeat are not generated anymore after another key is released.
I am on Debian, Sway with SDL 2.24.0
That behavior can be shown with this simple program
sdlkey.cc.txt
Steps to reproduce:
SDL_VIDEODRIVER=wayland
KEYDOWN 97
events.KEYDOWN 98
events.A
KEYUP 97
event is generated (so far so good) but nothing else even though the 'b' key is still pressed.When using the X11 driver, some
KEYDOWN 98
events are still produced after theKEYUP 97
.I noticed that issue in Cataclysm DDA. See CleverRaven/Cataclysm-DDA#61154
The text was updated successfully, but these errors were encountered: