Motion Fixes (#1589)
* fix stalling when server is offline * add retry timer to fail server connections, fix alt slot number * fix alt slot key issue * fix crash when saving controller config with empty fields * code fixes * add index check in motion hid update, made HandleResponse async Co-authored-by: Emmanuel <nhv3@localhost.localdomain>
This commit is contained in:
parent
c9841dab38
commit
9f13f957af
6 changed files with 218 additions and 139 deletions
|
@ -447,6 +447,8 @@ namespace Ryujinx.Ui
|
|||
Enum.TryParse(_rSl.Label, out Key rButtonSl);
|
||||
Enum.TryParse(_rSr.Label, out Key rButtonSr);
|
||||
|
||||
int.TryParse(_dsuServerPort.Buffer.Text, out int port);
|
||||
|
||||
return new KeyboardConfig
|
||||
{
|
||||
Index = int.Parse(_inputDevice.ActiveId.Split("/")[1]),
|
||||
|
@ -489,11 +491,11 @@ namespace Ryujinx.Ui
|
|||
EnableMotion = _enableMotion.Active,
|
||||
MirrorInput = _mirrorInput.Active,
|
||||
Slot = (int)_slotNumber.Value,
|
||||
AltSlot = (int)_slotNumber.Value,
|
||||
AltSlot = (int)_altSlotNumber.Value,
|
||||
Sensitivity = (int)_sensitivity.Value,
|
||||
GyroDeadzone = _gyroDeadzone.Value,
|
||||
DsuServerHost = _dsuServerHost.Buffer.Text,
|
||||
DsuServerPort = int.Parse(_dsuServerPort.Buffer.Text)
|
||||
DsuServerPort = port
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -525,6 +527,8 @@ namespace Ryujinx.Ui
|
|||
Enum.TryParse(_rSl.Label, out ControllerInputId rButtonSl);
|
||||
Enum.TryParse(_rSr.Label, out ControllerInputId rButtonSr);
|
||||
|
||||
int.TryParse(_dsuServerPort.Buffer.Text, out int port);
|
||||
|
||||
return new ControllerConfig
|
||||
{
|
||||
Index = int.Parse(_inputDevice.ActiveId.Split("/")[1]),
|
||||
|
@ -570,11 +574,11 @@ namespace Ryujinx.Ui
|
|||
EnableMotion = _enableMotion.Active,
|
||||
MirrorInput = _mirrorInput.Active,
|
||||
Slot = (int)_slotNumber.Value,
|
||||
AltSlot = (int)_slotNumber.Value,
|
||||
AltSlot = (int)_altSlotNumber.Value,
|
||||
Sensitivity = (int)_sensitivity.Value,
|
||||
GyroDeadzone = _gyroDeadzone.Value,
|
||||
DsuServerHost = _dsuServerHost.Buffer.Text,
|
||||
DsuServerPort = int.Parse(_dsuServerPort.Buffer.Text)
|
||||
DsuServerPort = port
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue