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:
parent
34457078eb
commit
fa5c05120c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user