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/HLE/TouchScreenManager.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/HLE/TouchScreenManager.cs')
-rw-r--r-- | Ryujinx.Input/HLE/TouchScreenManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Input/HLE/TouchScreenManager.cs b/Ryujinx.Input/HLE/TouchScreenManager.cs index 579dcd74..e4b0f8fc 100644 --- a/Ryujinx.Input/HLE/TouchScreenManager.cs +++ b/Ryujinx.Input/HLE/TouchScreenManager.cs @@ -29,7 +29,7 @@ namespace Ryujinx.Input.HLE if (_wasClicking && !isClicking) { MouseStateSnapshot snapshot = IMouse.GetMouseStateSnapshot(_mouse); - var touchPosition = IMouse.GetTouchPosition(snapshot.Position, _mouse.ClientSize, aspectRatio); + var touchPosition = IMouse.GetScreenPosition(snapshot.Position, _mouse.ClientSize, aspectRatio); TouchPoint currentPoint = new TouchPoint { @@ -58,7 +58,7 @@ namespace Ryujinx.Input.HLE if (aspectRatio > 0) { MouseStateSnapshot snapshot = IMouse.GetMouseStateSnapshot(_mouse); - var touchPosition = IMouse.GetTouchPosition(snapshot.Position, _mouse.ClientSize, aspectRatio); + var touchPosition = IMouse.GetScreenPosition(snapshot.Position, _mouse.ClientSize, aspectRatio); TouchAttribute attribute = TouchAttribute.None; |