Compare commits

...

2 commits

Author SHA1 Message Date
Xam
6ff373c811 Merge branch 'pkctrl' into 'master'
Input: HLE: NpadManager: ignore handheld inputs when docked

See merge request [ryubing/ryujinx!177](https://git.ryujinx.app/ryubing/ryujinx/-/merge_requests/177)
2026-03-01 23:02:20 +01:00
xam
898f63e44c 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.
2025-11-19 20:25:59 -06:00

View file

@ -226,6 +226,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;