// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Input.States; using osuTK; namespace osu.Framework.Input.StateChanges.Events { public class TouchStateChangeEvent : InputStateChangeEvent { /// /// The current value. /// public readonly Touch Touch; /// /// Whether the became active, or null if no activity change occurred. /// public readonly bool? IsActive; /// /// The last position of this , or null if no position change occurred. /// public readonly Vector2? LastPosition; public TouchStateChangeEvent(InputState state, IInput input, Touch touch, bool? active, Vector2? lastPosition) : base(state, input) { Touch = touch; IsActive = active; LastPosition = lastPosition; } } }