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 osu.Framework.Input.StateChanges.Events;
5using osuTK.Input;
6
7namespace osu.Framework.Input.StateChanges
8{
9 public class MouseButtonInputFromTouch : MouseButtonInput, ISourcedFromTouch
10 {
11 public MouseButtonInputFromTouch(MouseButton button, bool isPressed, TouchStateChangeEvent touchEvent)
12 : base(button, isPressed)
13 {
14 TouchEvent = touchEvent;
15 }
16
17 public TouchStateChangeEvent TouchEvent { get; }
18 }
19}