Fix more stupid mistakes

This commit is contained in:
Isaac Marovitz 2023-05-18 17:47:43 -04:00 committed by Isaac Marovitz
parent a553b090b6
commit 1b037ca33d

View file

@ -533,6 +533,7 @@ namespace Ryujinx.Ava.UI.Models.Input
AltSlot = cemuHook.AltSlot; AltSlot = cemuHook.AltSlot;
MirrorInput = cemuHook.MirrorInput; MirrorInput = cemuHook.MirrorInput;
} }
}
if (controllerInput.Rumble != null) if (controllerInput.Rumble != null)
{ {
@ -542,7 +543,6 @@ namespace Ryujinx.Ava.UI.Models.Input
} }
} }
} }
}
public InputConfig GetConfig() public InputConfig GetConfig()
{ {
@ -598,6 +598,13 @@ namespace Ryujinx.Ava.UI.Models.Input
WeakRumble = WeakRumble, WeakRumble = WeakRumble,
StrongRumble = StrongRumble StrongRumble = StrongRumble
}, },
Motion = new MotionConfigController
{
EnableMotion = EnableMotion,
MotionBackend = MotionBackend,
GyroDeadzone = GyroDeadzone,
Sensitivity = Sensitivity,
},
Version = InputConfig.CurrentVersion, Version = InputConfig.CurrentVersion,
DeadzoneLeft = DeadzoneLeft, DeadzoneLeft = DeadzoneLeft,
DeadzoneRight = DeadzoneRight, DeadzoneRight = DeadzoneRight,
@ -606,9 +613,16 @@ namespace Ryujinx.Ava.UI.Models.Input
TriggerThreshold = TriggerThreshold, TriggerThreshold = TriggerThreshold,
}; };
config.Motion.Sensitivity = Sensitivity; if (EnableCemuHookMotion)
config.Motion.EnableMotion = EnableMotion; {
config.Motion.GyroDeadzone = GyroDeadzone; var cemuHook = (CemuHookMotionConfigController)config.Motion;
cemuHook.DsuServerHost = DsuServerHost;
cemuHook.DsuServerPort = DsuServerPort;
cemuHook.Slot = Slot;
cemuHook.AltSlot = AltSlot;
cemuHook.MirrorInput = MirrorInput;
config.Motion = cemuHook;
}
return config; return config;
} }