mirror of
https://github.com/ppy/osu
synced 2025-01-03 12:52:10 +00:00
osuLogo handles less keys.
This commit is contained in:
parent
adba72d293
commit
1e9e52aecc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user