mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-10 12:49:13 +00:00
Fix more stupid mistakes
This commit is contained in:
parent
a553b090b6
commit
1b037ca33d
1 changed files with 23 additions and 9 deletions
|
@ -533,6 +533,7 @@ namespace Ryujinx.Ava.UI.Models.Input
|
|||
AltSlot = cemuHook.AltSlot;
|
||||
MirrorInput = cemuHook.MirrorInput;
|
||||
}
|
||||
}
|
||||
|
||||
if (controllerInput.Rumble != null)
|
||||
{
|
||||
|
@ -542,7 +543,6 @@ namespace Ryujinx.Ava.UI.Models.Input
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public InputConfig GetConfig()
|
||||
{
|
||||
|
@ -598,6 +598,13 @@ namespace Ryujinx.Ava.UI.Models.Input
|
|||
WeakRumble = WeakRumble,
|
||||
StrongRumble = StrongRumble
|
||||
},
|
||||
Motion = new MotionConfigController
|
||||
{
|
||||
EnableMotion = EnableMotion,
|
||||
MotionBackend = MotionBackend,
|
||||
GyroDeadzone = GyroDeadzone,
|
||||
Sensitivity = Sensitivity,
|
||||
},
|
||||
Version = InputConfig.CurrentVersion,
|
||||
DeadzoneLeft = DeadzoneLeft,
|
||||
DeadzoneRight = DeadzoneRight,
|
||||
|
@ -606,9 +613,16 @@ namespace Ryujinx.Ava.UI.Models.Input
|
|||
TriggerThreshold = TriggerThreshold,
|
||||
};
|
||||
|
||||
config.Motion.Sensitivity = Sensitivity;
|
||||
config.Motion.EnableMotion = EnableMotion;
|
||||
config.Motion.GyroDeadzone = GyroDeadzone;
|
||||
if (EnableCemuHookMotion)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue