1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:52:55 +08:00

Made cursortrail work with multiple positions

This commit is contained in:
WebFreak001 2017-05-05 17:44:51 +02:00
parent 063b606a12
commit 5aecc3d761

View File

@ -122,9 +122,9 @@ namespace osu.Game.Graphics.Cursor
return base.OnMouseMove(state);
}
Vector2 pos1 = lastPosition.Value;
foreach (Vector2 pos2 in resampler.AddPosition(state.Mouse.NativeState.Position))
{
Vector2 pos1 = lastPosition.Value;
Vector2 diff = pos2 - pos1;
float distance = diff.Length;
Vector2 direction = diff / distance;