mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 22:06:08 +08:00
Handle left and right mouse button only.
This commit is contained in:
parent
f6f20cafd3
commit
a91d897282
@ -142,7 +142,15 @@ namespace osu.Game.Overlays.Mods
|
|||||||
|
|
||||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||||
{
|
{
|
||||||
(args.Button == MouseButton.Right ? (Action)SelectPrevious : SelectNext)();
|
switch (args.Button)
|
||||||
|
{
|
||||||
|
case MouseButton.Left:
|
||||||
|
SelectNext();
|
||||||
|
break;
|
||||||
|
case MouseButton.Right:
|
||||||
|
SelectPrevious();
|
||||||
|
break;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user