diff --git a/osu.Game/Screens/Menu/ButtonSystem.cs b/osu.Game/Screens/Menu/ButtonSystem.cs
index fadc80277a..04bffda81b 100644
--- a/osu.Game/Screens/Menu/ButtonSystem.cs
+++ b/osu.Game/Screens/Menu/ButtonSystem.cs
@@ -191,38 +191,44 @@ namespace osu.Game.Screens.Menu
State = ButtonSystemState.Initial;
}
- protected override bool OnKeyDown(KeyDownEvent e)
+ ///
+ /// Triggers the if the current is .
+ ///
+ /// true if the was triggered, false otherwise.
+ private bool triggerInitialOsuLogo()
{
- if (e.Repeat || e.ControlPressed || e.ShiftPressed || e.AltPressed || e.SuperPressed)
- return false;
-
if (State == ButtonSystemState.Initial)
{
logo?.TriggerClick();
return true;
}
+ return false;
+ }
+
+ protected override bool OnKeyDown(KeyDownEvent e)
+ {
+ if (e.Repeat || e.ControlPressed || e.ShiftPressed || e.AltPressed || e.SuperPressed)
+ return false;
+
+ if (triggerInitialOsuLogo())
+ return true;
+
return base.OnKeyDown(e);
}
protected override bool OnJoystickPress(JoystickPressEvent e)
{
- if (State == ButtonSystemState.Initial)
- {
- logo?.TriggerClick();
+ if (triggerInitialOsuLogo())
return true;
- }
return base.OnJoystickPress(e);
}
protected override bool OnMidiDown(MidiDownEvent e)
{
- if (State == ButtonSystemState.Initial)
- {
- logo?.TriggerClick();
+ if (triggerInitialOsuLogo())
return true;
- }
return base.OnMidiDown(e);
}