mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Add the ability to exit the game using escape.
This commit is contained in:
@ -66,5 +66,16 @@ namespace osu.Game.GameModes.Menu
|
||||
Content.FadeOut(300);
|
||||
base.OnSuspending(next);
|
||||
}
|
||||
|
||||
protected override void OnResuming(GameMode last)
|
||||
{
|
||||
//this is an exit
|
||||
Game.Scheduler.AddDelayed(delegate
|
||||
{
|
||||
Game.Exit();
|
||||
}, 300);
|
||||
|
||||
base.OnResuming(last);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user