forked from ppy/osu-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add marker
IInput
s for tablet pen position & touch
These just map to the respective mouse inputs.
- Loading branch information
Showing
4 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
osu.Framework/Input/StateChanges/TabletPenPositionAbsoluteInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
namespace osu.Framework.Input.StateChanges | ||
{ | ||
public class TabletPenPositionAbsoluteInput : MousePositionAbsoluteInput; | ||
} |
7 changes: 7 additions & 0 deletions
7
osu.Framework/Input/StateChanges/TabletPenPositionRelativeInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
namespace osu.Framework.Input.StateChanges | ||
{ | ||
public class TabletPenPositionRelativeInput : MousePositionRelativeInput; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osuTK.Input; | ||
|
||
namespace osu.Framework.Input.StateChanges | ||
{ | ||
/// <summary> | ||
/// Denotes a pen touching or lifting from the tablet surface. | ||
/// </summary> | ||
/// <remarks>This currently emulates a left mouse press or release.</remarks> | ||
public class TabletPenTouchInput : MouseButtonInput | ||
{ | ||
public TabletPenTouchInput(bool isPressed) | ||
: base(MouseButton.Left, isPressed) | ||
{ | ||
} | ||
} | ||
} |