A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using osu.Framework.Input.States;
5using osuTK;
6
7namespace osu.Framework.Input.StateChanges.Events
8{
9 public class MousePositionChangeEvent : InputStateChangeEvent
10 {
11 /// <summary>
12 /// The last mouse position.
13 /// </summary>
14 public readonly Vector2 LastPosition;
15
16 public MousePositionChangeEvent(InputState state, IInput input, Vector2 lastPosition)
17 : base(state, input)
18 {
19 LastPosition = lastPosition;
20 }
21 }
22}