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

Fix confusing behavior with onFocus/onFocusLost #3298

Open
Geokureli opened this issue Dec 1, 2024 · 0 comments
Open

Fix confusing behavior with onFocus/onFocusLost #3298

Geokureli opened this issue Dec 1, 2024 · 0 comments

Comments

@Geokureli
Copy link
Member

Issue started here: #3271
There seems to be a lot of things going wrong here:

  • Calling sound.onFocus when the game has focus, assumes all paused sounds should be resumed
  • FlxGame.onFocus only checks if it already has focus on flash, but should probably check on all targets (?)
  • I'm not sure why closing the debug menu triggered a focus event, when focus isn't lost. I wonder if a certain menu takes focus, I know selecting the console pauses the game, but this doesn't seem to take focus, and doesn't require onFocus to unpause the game when closing the debug menu

Things might be fine with 3271, but I want to look into this later

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

No branches or pull requests

1 participant