diff options
| author | emmauss <emmausssss@gmail.com> | 2021-06-24 00:09:08 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-24 02:09:08 +0200 |
| commit | 77aab9aca302bbe635d94750f57fb9a1ad910b74 (patch) | |
| tree | 67b37d83d194169a6b6a4a98914c761b8f7b8a77 /Ryujinx.Input/MouseStateSnapshot.cs | |
| parent | a10b2c5ff26886e9ffc6f19e3f0fe9505a503b2f (diff) | |
Add Direct Mouse Support (#2374)
* and direct mouse support
* and direct mouse support
* hide cursor if mouse enabled
* add config
* update docs
* sorted usings
Diffstat (limited to 'Ryujinx.Input/MouseStateSnapshot.cs')
| -rw-r--r-- | Ryujinx.Input/MouseStateSnapshot.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Ryujinx.Input/MouseStateSnapshot.cs b/Ryujinx.Input/MouseStateSnapshot.cs index 4fbfeebd..ddfdebc6 100644 --- a/Ryujinx.Input/MouseStateSnapshot.cs +++ b/Ryujinx.Input/MouseStateSnapshot.cs @@ -10,17 +10,28 @@ namespace Ryujinx.Input { private bool[] _buttonState; + /// <summary> + /// The position of the mouse cursor + /// </summary> public Vector2 Position { get; } /// <summary> + /// The scroll delta of the mouse + /// </summary> + public Vector2 Scroll { get; } + + /// <summary> /// Create a new <see cref="MouseStateSnapshot"/>. /// </summary> - /// <param name="buttonState">The keys state</param> - public MouseStateSnapshot(bool[] buttonState, Vector2 position) + /// <param name="buttonState">The button state</param> + /// <param name="position">The position of the cursor</param> + /// <param name="scroll">The scroll delta</param> + public MouseStateSnapshot(bool[] buttonState, Vector2 position, Vector2 scroll) { _buttonState = buttonState; Position = position; + Scroll = scroll; } /// <summary> |
