Disable windows key while in gameplay.

This commit is contained in:
Lucas A
2020-07-01 17:15:41 +02:00
parent 641ea5b950
commit fc1eb42a65
3 changed files with 125 additions and 0 deletions

View File

@ -16,6 +16,7 @@ using osu.Framework.Logging;
using osu.Framework.Screens;
using osu.Game.Screens.Menu;
using osu.Game.Updater;
using osu.Desktop.Windows;
namespace osu.Desktop
{
@ -98,6 +99,9 @@ namespace osu.Desktop
LoadComponentAsync(versionManager = new VersionManager { Depth = int.MinValue }, Add);
LoadComponentAsync(new DiscordRichPresence(), Add);
if (RuntimeInfo.OS == RuntimeInfo.Platform.Windows)
LoadComponentAsync(new GameplayWinKeyHandler(), Add);
}
protected override void ScreenChanged(IScreen lastScreen, IScreen newScreen)