mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 07:18:45 +08: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…
x
Reference in New Issue
Block a user