mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-22 23:05:46 +00:00
[HLE] Fix hid issues on some games
This commit is contained in:
parent
032c442505
commit
435f9ffad8
2 changed files with 8 additions and 1 deletions
|
@ -219,7 +219,7 @@ namespace Ryujinx.Core.Input
|
||||||
Memory.WriteInt64Unchecked(TouchScreenOffset + 0x8, HidEntryCount);
|
Memory.WriteInt64Unchecked(TouchScreenOffset + 0x8, HidEntryCount);
|
||||||
Memory.WriteInt64Unchecked(TouchScreenOffset + 0x10, CurrEntry);
|
Memory.WriteInt64Unchecked(TouchScreenOffset + 0x10, CurrEntry);
|
||||||
Memory.WriteInt64Unchecked(TouchScreenOffset + 0x18, HidEntryCount - 1);
|
Memory.WriteInt64Unchecked(TouchScreenOffset + 0x18, HidEntryCount - 1);
|
||||||
Memory.WriteInt64Unchecked(TouchScreenOffset + 0x20, Timestamp);
|
Memory.WriteInt64Unchecked(TouchScreenOffset + 0x20, Timestamp);
|
||||||
|
|
||||||
long TouchEntryOffset = TouchScreenOffset + HidTouchHeaderSize;
|
long TouchEntryOffset = TouchScreenOffset + HidTouchHeaderSize;
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,13 @@ namespace Ryujinx
|
||||||
Ns.Hid.SetTouchPoints();
|
Ns.Hid.SetTouchPoints();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Ns.Hid.SetJoyconButton(
|
||||||
|
HidControllerId.CONTROLLER_HANDHELD,
|
||||||
|
HidControllerLayouts.Handheld_Joined,
|
||||||
|
CurrentButton,
|
||||||
|
LeftJoystick,
|
||||||
|
RightJoystick);
|
||||||
|
|
||||||
Ns.Hid.SetJoyconButton(
|
Ns.Hid.SetJoyconButton(
|
||||||
HidControllerId.CONTROLLER_HANDHELD,
|
HidControllerId.CONTROLLER_HANDHELD,
|
||||||
HidControllerLayouts.Main,
|
HidControllerLayouts.Main,
|
||||||
|
|
Loading…
Reference in a new issue