Merge branch 'master' into master

This commit is contained in:
Tsubasa0504 2024-04-17 06:56:44 +09:00 committed by GitHub
commit 4a98cca028
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -245,9 +245,9 @@ namespace Ryujinx.Input.HLE
{
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));
bool needsMotionInputUpdate = _config is not StandardControllerInputConfig oldControllerConfig ||
((oldControllerConfig.Motion.EnableMotion != controllerConfig.Motion.EnableMotion) &&
(oldControllerConfig.Motion.MotionBackend != controllerConfig.Motion.MotionBackend));
if (needsMotionInputUpdate)
{