1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 11:02:57 +08:00

Allow rewinding random in song select with Shift + Left Click

This commit is contained in:
Salman Ahmed 2022-04-28 20:04:52 +03:00
parent 34457078eb
commit fa5c05120c

View File

@ -59,6 +59,18 @@ namespace osu.Game.Screens.Select
};
}
protected override bool OnClick(ClickEvent e)
{
rewindSearch = e.ShiftPressed;
return base.OnClick(e);
}
protected override void OnMouseUp(MouseUpEvent e)
{
rewindSearch = false;
base.OnMouseUp(e);
}
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{
rewindSearch = e.Action == GlobalAction.SelectPreviousRandom;