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:
parent
34b6705c62
commit
89d973416a
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user