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.
merge-requests/177/head
xam 2025-10-19 23:22:04 +02:00
parent d1d4a735a6
commit f6463456c6
1 changed files with 4 additions and 0 deletions

View File

@ -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;