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