ecs-demo
ecs-demo copied to clipboard
Lingering keyboard event on second run
I'm newish to both swift and SDL2 so could be a dumb thing. When I run Particles for the second time the window closes immediately. Digging into it, I basically see a queued-up ESC in the events list even though hasn't been pressed for THIS run -- but one was pressed to end the previous run.
I'm unsure how to flush the event queue, so I've just disabled it for now and rely on CTRL-C which is fine for me messing around. But it seems to imply something fishy going on under the hood.
I'm running Ubuntu via WSLg on Windows 11 so there are additional complexities going on here.
Happy to poke around more with some guidance. Thanks!