mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Fix test and spawn smoke immediately
This commit is contained in:
@ -19,6 +19,8 @@ namespace osu.Game.Rulesets.Osu.UI
|
||||
public event Action<Vector2, double>? SmokeMoved;
|
||||
public event Action<double>? SmokeEnded;
|
||||
|
||||
public Vector2 LastMousePosition;
|
||||
|
||||
private bool isSmoking;
|
||||
|
||||
public override bool ReceivePositionalInputAt(Vector2 _) => true;
|
||||
@ -50,6 +52,8 @@ namespace osu.Game.Rulesets.Osu.UI
|
||||
if (isSmoking)
|
||||
SmokeMoved?.Invoke(e.MousePosition, Time.Current);
|
||||
|
||||
LastMousePosition = e.MousePosition;
|
||||
|
||||
return base.OnMouseMove(e);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user