Closed smcv closed 1 year ago
So this happens for a few reasons:
sets a flag that says to actually deal with it on the next iteration of SDL_PumpEvents
(Actually, it just sets the timestamp to "now" at this point, which is treated as a starting point, not the event timeout, so what 1.2 is actually doing is waiting the delay time plus one interval, not waiting the delay and then handling it in the next PumpEvents.)
Confirmed fixed by 67f8b3a, 1.2.58 + 29 commits
Prerequisites:
pipewire-pulse
emulating PulseAudioapt install crrcsim
(Debian package version0.9.13-3.2
)libsdl1.2-compat
either 1.2.58-1 (packaged in Debian experimental) or commit 63e4393 (locally built)libsdl2-2.0-0
version2.24.1+dfsg-1
libsdl1.2debian
(real SDL 1.2) version1.2.15+dfsg2-8
To reproduce:
crrcsim
LD_LIBRARY_PATH=.../sdl12-compat/_build crrcsim
Press Escape to open a menu. Hold down Escape for a second or so.
Expected result: pressing Esc briefly opens menu. Holding Esc cycles between menu and no menu a few times per second.
Actual result: pressing Esc very briefly opens menu, but a typical keypress (at least for me) will be long enough to open it and then close it again - I have to try quite hard to press it briefly enough to get the menu. Holding Esc cycles between menu and no menu rather quickly.