// 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; namespace osu.Framework.Input.StateChanges.Events { public class ButtonStateChangeEvent : InputStateChangeEvent where TButton : struct { /// /// The button which changed state. /// public readonly TButton Button; /// /// The kind of button state change. Either pressed or released. /// public readonly ButtonStateChangeKind Kind; public ButtonStateChangeEvent(InputState state, IInput input, TButton button, ButtonStateChangeKind kind) : base(state, input) { Button = button; Kind = kind; } } }