This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs | |
index e8a164c..ae10895 100644 | |
--- a/DS4Windows/DS4Control/ControlService.cs | |
+++ b/DS4Windows/DS4Control/ControlService.cs | |
@@ -7,6 +7,9 @@ using System.Media; | |
using System.Threading.Tasks; | |
using static DS4Windows.Global; | |
using System.Threading; | |
+using Nefarius.ViGEm.Client; | |
+using Nefarius.ViGEm.Client.Targets; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs | |
index e8a164c..833a4a6 100644 | |
--- a/DS4Windows/DS4Control/ControlService.cs | |
+++ b/DS4Windows/DS4Control/ControlService.cs | |
@@ -39,6 +39,7 @@ namespace DS4Windows | |
}; | |
public bool suspending; | |
//SoundPlayer sp = new SoundPlayer(); | |
+ private UdpServer _udpServer; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Net.NetworkInformation; | |
using System.Net.Sockets; | |
using System.ComponentModel; | |
namespace DS4Windows | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs | |
index e8a164c..7ae2ade 100644 | |
--- a/DS4Windows/DS4Control/ControlService.cs | |
+++ b/DS4Windows/DS4Control/ControlService.cs | |
@@ -7,6 +7,9 @@ using System.Media; | |
using System.Threading.Tasks; | |
using static DS4Windows.Global; | |
using System.Threading; | |
+using Nefarius.ViGEm.Client; | |
+using Nefarius.ViGEm.Client.Targets; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs | |
index 3c4ff38..70a81b4 100644 | |
--- a/DS4Windows/DS4Control/ControlService.cs | |
+++ b/DS4Windows/DS4Control/ControlService.cs | |
@@ -828,7 +828,11 @@ namespace DS4Windows | |
if (getEnableTouchToggle(ind)) | |
CheckForTouchToggle(ind, cState, pState); | |
- cState = Mapping.SetCurveAndDeadzone(ind, cState, TempState[ind]); | |
+ cState = Mapping.SetCurveAndDeadzone(ind, cState, pState, TempState[ind]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs | |
index f2b19d5..80e7408 100644 | |
--- a/DS4Windows/DS4Control/ControlService.cs | |
+++ b/DS4Windows/DS4Control/ControlService.cs | |
@@ -141,8 +141,43 @@ namespace DS4Windows | |
PreviousState[i] = new DS4State(); | |
ExposedState[i] = new DS4StateExposed(CurrentState[i]); | |
} | |
+ | |
+ boob = new ManualResetEvent(false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace DS4ImportTest | |
{ | |
class Tester | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs | |
index 7af90bd..cd82824 100644 | |
--- a/DS4Windows/DS4Control/Mapping.cs | |
+++ b/DS4Windows/DS4Control/Mapping.cs | |
@@ -1579,11 +1579,16 @@ namespace DS4Windows | |
if (macroControl[24]) MappedState.RY = 0; | |
} | |
- if (getSASteeringWheelEmulationAxis(device) != SASteeringWheelEmulationAxisType.None) | |
+ if (GetSASteeringWheelEmulationAxis(device) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs | |
index 29a0bcd..e8158b3 100644 | |
--- a/DS4Windows/DS4Control/Mapping.cs | |
+++ b/DS4Windows/DS4Control/Mapping.cs | |
@@ -75,6 +75,74 @@ namespace DS4Windows | |
new Queue<ControlToXInput>(), new Queue<ControlToXInput>() | |
}; | |
+ struct DS4Vector2 | |
+ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/DS4Windows/DS4Control/ScpUtil.cs b/DS4Windows/DS4Control/ScpUtil.cs | |
index f5ccddc..c4111ef 100644 | |
--- a/DS4Windows/DS4Control/ScpUtil.cs | |
+++ b/DS4Windows/DS4Control/ScpUtil.cs | |
@@ -334,6 +334,34 @@ namespace DS4Windows | |
return result; | |
} | |
+ internal static string GetDeviceProperty(string deviceInstanceId, | |
+ NativeMethods.DEVPROPKEY prop) |