// 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 MouseScrollChangeEvent : InputStateChangeEvent { /// /// The absolute value of scroll prior to this change. /// public readonly Vector2 LastScroll; /// /// Whether the change came from a device supporting precision scrolling. /// /// /// In cases this is true, scroll events will generally map 1:1 to user's input, rather than incrementing in large "notches" (as expected of traditional scroll wheels). /// public readonly bool IsPrecise; public MouseScrollChangeEvent(InputState state, IInput input, Vector2 lastScroll, bool isPrecise) : base(state, input) { LastScroll = lastScroll; IsPrecise = isPrecise; } } }