1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 19:27:24 +08:00

osuLogo handles less keys.

This commit is contained in:
Dean Herbert 2016-10-08 00:41:44 +09:00
parent adba72d293
commit 1e9e52aecc

View File

@ -125,16 +125,19 @@ namespace osu.Game.GameModes.Menu
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
if (args.Key == Key.Escape)
switch (args.Key)
{
if (State == MenuState.Initial)
return false;
case Key.Space:
osuLogo.TriggerClick(state);
return true;
case Key.Escape:
if (State == MenuState.Initial)
return false;
State = MenuState.Initial;
return true;
State = MenuState.Initial;
return true;
}
osuLogo.TriggerClick(state);
return true;
}