// 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.Extensions.TypeExtensions; using osu.Framework.Input.States; namespace osu.Framework.Input.Events { /// /// Events of a joystick button. /// public abstract class JoystickButtonEvent : JoystickEvent { public readonly JoystickButton Button; protected JoystickButtonEvent(InputState state, JoystickButton button) : base(state) { Button = button; } public override string ToString() => $"{GetType().ReadableName()}({Button})"; } }