In local sessions, pause the race when the window leaves focus.#5660
Open
Big-Blue-Gnu wants to merge 2 commits intosupertuxkart:masterfrom
Open
In local sessions, pause the race when the window leaves focus.#5660Big-Blue-Gnu wants to merge 2 commits intosupertuxkart:masterfrom
Big-Blue-Gnu wants to merge 2 commits intosupertuxkart:masterfrom
Conversation
In local sessions, pause the race when the game loses focus.
Declare the phase variable inside the condition. No need to have it outside if it goes unused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If you were ever in the middle of a game and you accidentally alt-tabbed out or an application suddenly popped up to steal the focus, chances are you have lost some progress by the time you returned in haste. This change adds a mechanism intended for non-networked sessions. The mechanism, which is triggered when the player is in a race, opens the pause menu and has the same effect as pressing Esc on the keyboard. I only tested the feature on Linux Mint, on which I report no regressions. Non-Linux versions may need testing.
Agreement