mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-18 08:56:20 +01:00
Add null extras detection when opening button mapping window
This commit is contained in:
parent
ac4017fea2
commit
5ad4e83b58
@ -716,7 +716,7 @@ namespace DS4Windows
|
||||
static int[] oldmouse = new int[4] { -1, -1, -1, -1 };
|
||||
public static void MapCustom(int device, DS4State cState, DS4State MappedState, DS4StateExposed eState, Mouse tp, ControlService ctrl)
|
||||
{
|
||||
|
||||
/* TODO: This method is slow sauce. Find ways to speed up action execution */
|
||||
MappedState.LX = 127;
|
||||
MappedState.LY = 127;
|
||||
MappedState.RX = 127;
|
||||
|
@ -509,7 +509,15 @@ namespace DS4Windows
|
||||
}
|
||||
}
|
||||
}
|
||||
string[] extras = Global.GetDS4Extra(device, button.Name, rBShiftModifer.Checked).Split(',');
|
||||
string dcExtras = Global.GetDS4Extra(device, button.Name, rBShiftModifer.Checked);
|
||||
string[] extras = null;
|
||||
if (!string.IsNullOrEmpty(dcExtras))
|
||||
{
|
||||
extras = dcExtras.Split(',');
|
||||
}
|
||||
|
||||
if (extras != null)
|
||||
{
|
||||
int b;
|
||||
try
|
||||
{
|
||||
@ -558,6 +566,8 @@ namespace DS4Windows
|
||||
nUDMouse.Value = 25;
|
||||
cBMouse.Checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
extraChanged = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user