1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Fix escape key nonsense.

This commit is contained in:
Dean Herbert 2017-02-07 21:46:13 +09:00
parent 8a0887c3c3
commit dc5e9dde56
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
2 changed files with 4 additions and 2 deletions

View File

@ -257,7 +257,7 @@ namespace osu.Game.Screens.Menu
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
base.OnKeyDown(state, args);
if (args.Repeat) return false;
if (triggerKey == args.Key && triggerKey != Key.Unknown)
{

View File

@ -132,6 +132,8 @@ namespace osu.Game.Screens.Menu
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
if (args.Repeat) return false;
switch (args.Key)
{
case Key.Space:
@ -288,7 +290,7 @@ namespace osu.Game.Screens.Menu
//if (OsuGame.IdleTime > 6000 && State != MenuState.Exit)
// State = MenuState.Initial;
osuLogo.Interactive = Alpha >= 0.8f;
osuLogo.Interactive = Alpha > 0.2f;
iconFacade.Width = osuLogo.SizeForFlow * 0.5f;
base.Update();