Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lingering keyboard event on second run #9

Open
andymule opened this issue Apr 29, 2022 · 0 comments
Open

Lingering keyboard event on second run #9

andymule opened this issue Apr 29, 2022 · 0 comments

Comments

@andymule
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant