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 };
|
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)
|
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.LX = 127;
|
||||||
MappedState.LY = 127;
|
MappedState.LY = 127;
|
||||||
MappedState.RX = 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;
|
int b;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -558,6 +566,8 @@ namespace DS4Windows
|
|||||||
nUDMouse.Value = 25;
|
nUDMouse.Value = 25;
|
||||||
cBMouse.Checked = false;
|
cBMouse.Checked = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
extraChanged = false;
|
extraChanged = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user