1
0
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:
Huo Yaoyuan 2017-03-06 18:02:51 +08:00
parent f6f20cafd3
commit a91d897282

View File

@ -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;
} }