mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +01:00
Tweak disconnect routine
This commit is contained in:
parent
64e8a137e1
commit
51cbe22a90
@ -1400,8 +1400,13 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
DS4Device d = ctrl.DS4Controllers[device];
|
DS4Device d = ctrl.DS4Controllers[device];
|
||||||
if (!d.Charging)
|
if (!d.Charging)
|
||||||
|
{
|
||||||
|
ConnectionType deviceConn = d.ConnectionType;
|
||||||
|
if (deviceConn == ConnectionType.BT)
|
||||||
{
|
{
|
||||||
d.DisconnectBT();
|
d.DisconnectBT();
|
||||||
|
}
|
||||||
|
|
||||||
foreach (DS4Controls dc in action.trigger)
|
foreach (DS4Controls dc in action.trigger)
|
||||||
{
|
{
|
||||||
DS4ControlSettings dcs = getDS4CSetting(device, dc);
|
DS4ControlSettings dcs = getDS4CSetting(device, dc);
|
||||||
|
@ -771,7 +771,7 @@ namespace DS4Windows
|
|||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
IsDisconnecting = true;
|
IsDisconnecting = true;
|
||||||
StopUpdate();
|
StopOutputUpdate();
|
||||||
if (Removal != null)
|
if (Removal != null)
|
||||||
Removal(this, EventArgs.Empty);
|
Removal(this, EventArgs.Empty);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user