diff options
author | gdkchan <gab.dark.100@gmail.com> | 2018-04-13 17:39:45 -0300 |
---|---|---|
committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-13 17:39:45 -0300 |
commit | 435f9ffad8b87ae29f1735a200a5838e961163bd (patch) | |
tree | c049898030b5334bf6231b5cdd89438ae005a227 | |
parent | 032c4425057aba086d86837928cd68a7884f2e14 (diff) |
[HLE] Fix hid issues on some games
-rw-r--r-- | Ryujinx.Core/Hid/Hid.cs | 2 | ||||
-rw-r--r-- | Ryujinx/Ui/GLScreen.cs | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Ryujinx.Core/Hid/Hid.cs b/Ryujinx.Core/Hid/Hid.cs index f25a9437..48f309d8 100644 --- a/Ryujinx.Core/Hid/Hid.cs +++ b/Ryujinx.Core/Hid/Hid.cs @@ -219,7 +219,7 @@ namespace Ryujinx.Core.Input Memory.WriteInt64Unchecked(TouchScreenOffset + 0x8, HidEntryCount); Memory.WriteInt64Unchecked(TouchScreenOffset + 0x10, CurrEntry); Memory.WriteInt64Unchecked(TouchScreenOffset + 0x18, HidEntryCount - 1); - Memory.WriteInt64Unchecked(TouchScreenOffset + 0x20, Timestamp); + Memory.WriteInt64Unchecked(TouchScreenOffset + 0x20, Timestamp); long TouchEntryOffset = TouchScreenOffset + HidTouchHeaderSize; diff --git a/Ryujinx/Ui/GLScreen.cs b/Ryujinx/Ui/GLScreen.cs index 49338247..8ccbebfa 100644 --- a/Ryujinx/Ui/GLScreen.cs +++ b/Ryujinx/Ui/GLScreen.cs @@ -156,6 +156,13 @@ namespace Ryujinx Ns.Hid.SetJoyconButton( HidControllerId.CONTROLLER_HANDHELD, + HidControllerLayouts.Handheld_Joined, + CurrentButton, + LeftJoystick, + RightJoystick); + + Ns.Hid.SetJoyconButton( + HidControllerId.CONTROLLER_HANDHELD, HidControllerLayouts.Main, CurrentButton, LeftJoystick, |