1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:52:54 +08:00

Simplify shouldRotate method

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Power Maker 2020-06-03 20:35:44 +02:00 committed by GitHub
parent 34b6705c62
commit 89d973416a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,13 +127,7 @@ namespace osu.Game.Graphics.Cursor
activeCursor.ScaleTo(0.6f, 250, Easing.In);
}
private static bool shouldRotate(MouseEvent e)
{
if (e.IsPressed(MouseButton.Left) || e.IsPressed(MouseButton.Right))
return true;
else
return false;
}
private static bool shouldRotate(MouseEvent e) => e.IsPressed(MouseButton.Left) || e.IsPressed(MouseButton.Right);
public class Cursor : Container
{