Always update controller motion input

This commit is contained in:
Luke44565 2024-04-10 17:32:45 -04:00
commit 18923ab439

View file

@ -244,16 +244,9 @@ namespace Ryujinx.Input.HLE
public void UpdateUserConfiguration(InputConfig config) public void UpdateUserConfiguration(InputConfig config)
{ {
if (config is StandardControllerInputConfig controllerConfig) if (config is StandardControllerInputConfig controllerConfig)
{
bool needsMotionInputUpdate = _config == null || (_config is StandardControllerInputConfig oldControllerConfig &&
(oldControllerConfig.Motion.EnableMotion != controllerConfig.Motion.EnableMotion) &&
(oldControllerConfig.Motion.MotionBackend != controllerConfig.Motion.MotionBackend));
if (needsMotionInputUpdate)
{ {
UpdateMotionInput(controllerConfig.Motion); UpdateMotionInput(controllerConfig.Motion);
} }
}
else else
{ {
// Non-controller doesn't have motions. // Non-controller doesn't have motions.