mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
Rename method to avoid confusion
This commit is contained in:
parent
eb15fc0bf9
commit
747ecd5ab2
@ -99,7 +99,7 @@ namespace osu.Game.Graphics.Cursor
|
||||
|
||||
protected override void OnMouseUp(MouseUpEvent e)
|
||||
{
|
||||
if (!anyMouseButtonPressed(e))
|
||||
if (!anyMainButtonPressed(e))
|
||||
{
|
||||
activeCursor.AdditiveLayer.FadeOutFromOne(500, Easing.OutQuint);
|
||||
activeCursor.ScaleTo(1, 500, Easing.OutElastic);
|
||||
@ -129,7 +129,7 @@ namespace osu.Game.Graphics.Cursor
|
||||
|
||||
private static bool shouldRotateCursor(MouseEvent e) => e.IsPressed(MouseButton.Left) || e.IsPressed(MouseButton.Right);
|
||||
|
||||
private static bool anyMouseButtonPressed(MouseEvent e) => e.IsPressed(MouseButton.Left) || e.IsPressed(MouseButton.Middle) || e.IsPressed(MouseButton.Right);
|
||||
private static bool anyMainButtonPressed(MouseEvent e) => e.IsPressed(MouseButton.Left) || e.IsPressed(MouseButton.Middle) || e.IsPressed(MouseButton.Right);
|
||||
|
||||
public class Cursor : Container
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user