From f6463456c6476f06844698a99dd2630f7f2b73aa Mon Sep 17 00:00:00 2001 From: xam <87-xam@users.noreply.git.ryujinx.app> Date: Sun, 19 Oct 2025 23:22:04 +0200 Subject: [PATCH] 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. --- src/Ryujinx.Input/HLE/NpadManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Ryujinx.Input/HLE/NpadManager.cs b/src/Ryujinx.Input/HLE/NpadManager.cs index 21219d91b..f05c2546c 100644 --- a/src/Ryujinx.Input/HLE/NpadManager.cs +++ b/src/Ryujinx.Input/HLE/NpadManager.cs @@ -221,6 +221,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;