mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-12 22:36:59 +00:00
Input: HLE: NpadManager: ignore handheld inputs when docked
fixes ghost inputs in games like pokemon when handheld controller is set in docked mode. it is now possible to keep handheld set and switch between modes with no issue.
This commit is contained in:
parent
e1c829f91d
commit
898f63e44c
1 changed files with 4 additions and 0 deletions
|
|
@ -224,6 +224,10 @@ namespace Ryujinx.Input.HLE
|
|||
|
||||
foreach (InputConfig inputConfig in _inputConfig)
|
||||
{
|
||||
// ignore handheld inputs if docked
|
||||
if (_device.System.State.DockedMode && inputConfig.PlayerIndex == Common.Configuration.Hid.PlayerIndex.Handheld)
|
||||
continue;
|
||||
|
||||
GamepadInput inputState = default;
|
||||
(SixAxisInput, SixAxisInput) motionState = default;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue