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:
parent
b49a1aab8a
commit
bb0f212448
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user