1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 14:12:55 +08:00

Trigger the initial cookie with midi and joysticks

This commit is contained in:
Susko3 2022-07-05 00:38:18 +02:00
parent b49a1aab8a
commit bb0f212448

View File

@ -205,6 +205,28 @@ namespace osu.Game.Screens.Menu
return base.OnKeyDown(e);
}
protected override bool OnJoystickPress(JoystickPressEvent e)
{
if (State == ButtonSystemState.Initial)
{
logo?.TriggerClick();
return true;
}
return base.OnJoystickPress(e);
}
protected override bool OnMidiDown(MidiDownEvent e)
{
if (State == ButtonSystemState.Initial)
{
logo?.TriggerClick();
return true;
}
return base.OnMidiDown(e);
}
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{
if (e.Repeat)