From 898f63e44cae743a2bb192524e79035ac5afc80f 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 866504128..7b64fbfb8 100644 --- a/src/Ryujinx.Input/HLE/NpadManager.cs +++ b/src/Ryujinx.Input/HLE/NpadManager.cs @@ -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;