A game framework written with osu! in mind.
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 System.Collections.Generic;
5using osu.Framework.Input.States;
6
7namespace osu.Framework.Input.StateChanges
8{
9 public class TabletPenButtonInput : ButtonInput<TabletPenButton>
10 {
11 public TabletPenButtonInput(IEnumerable<ButtonInputEntry<TabletPenButton>> entries)
12 : base(entries)
13 {
14 }
15
16 public TabletPenButtonInput(TabletPenButton button, bool isPressed)
17 : base(button, isPressed)
18 {
19 }
20
21 public TabletPenButtonInput(ButtonStates<TabletPenButton> current, ButtonStates<TabletPenButton> previous)
22 : base(current, previous)
23 {
24 }
25
26 protected override ButtonStates<TabletPenButton> GetButtonStates(InputState state) => state.Tablet.PenButtons;
27 }
28}