A game framework written with osu! in mind.
at master 714 B view raw
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.Extensions.TypeExtensions; 5using osu.Framework.Input.States; 6 7namespace osu.Framework.Input.Events 8{ 9 /// <summary> 10 /// Events of a tablet pen button. 11 /// </summary> 12 public abstract class TabletPenButtonEvent : TabletEvent 13 { 14 public readonly TabletPenButton Button; 15 16 protected TabletPenButtonEvent(InputState state, TabletPenButton button) 17 : base(state) 18 { 19 Button = button; 20 } 21 22 public override string ToString() => $"{GetType().ReadableName()}({Button})"; 23 } 24}