diff --git a/DS4Control/Mapping.cs b/DS4Control/Mapping.cs index bafa01e..bfe7aa6 100644 --- a/DS4Control/Mapping.cs +++ b/DS4Control/Mapping.cs @@ -177,35 +177,30 @@ namespace DS4Control if (gkp.current.toggleCount != 0 && gkp.previous.toggleCount == 0 && gkp.current.toggle) { if (gkp.current.scanCodeCount != 0) - InputMethods.PressKeys(kvp.Key); - //InputMethods.performSCKeyPress(kvp.Key); + InputMethods.performSCKeyPress(kvp.Key); else - InputMethods.PressKeys(kvp.Key); - // InputMethods.performKeyPress(kvp.Key); + InputMethods.performKeyPress(kvp.Key); } else if (gkp.current.toggleCount != 0 && gkp.previous.toggleCount == 0 && !gkp.current.toggle) { if (gkp.previous.scanCodeCount != 0) // use the last type of VK/SC InputMethods.performSCKeyRelease(kvp.Key); else - InputMethods.ReleaseKeys(kvp.Key); - //InputMethods.performKeyRelease(kvp.Key); + InputMethods.performKeyRelease(kvp.Key); } else if (gkp.current.vkCount + gkp.current.scanCodeCount != 0 && gkp.previous.vkCount + gkp.previous.scanCodeCount == 0) { if (gkp.current.scanCodeCount != 0) { oldnow = DateTime.UtcNow; - InputMethods.PressKeys(kvp.Key); - //InputMethods.performSCKeyPress(kvp.Key); + InputMethods.performSCKeyPress(kvp.Key); pressagain = false; keyshelddown = kvp.Key; } else { oldnow = DateTime.UtcNow; - InputMethods.PressKeys(kvp.Key); - //InputMethods.performKeyPress(kvp.Key); + InputMethods.performKeyPress(kvp.Key); pressagain = false; keyshelddown = kvp.Key; } @@ -227,8 +222,7 @@ namespace DS4Control if (now >= oldnow + TimeSpan.FromMilliseconds(25) && pressagain) { oldnow = now; - //InputMethods.performSCKeyPress(kvp.Key); - InputMethods.PressKeys(kvp.Key); + InputMethods.performSCKeyPress(kvp.Key); } } else if (pressagain) @@ -237,8 +231,7 @@ namespace DS4Control if (now >= oldnow + TimeSpan.FromMilliseconds(25) && pressagain) { oldnow = now; - InputMethods.PressKeys(kvp.Key); - //InputMethods.performKeyPress(kvp.Key); + InputMethods.performKeyPress(kvp.Key); } } } @@ -248,13 +241,11 @@ namespace DS4Control if (gkp.previous.scanCodeCount != 0) // use the last type of VK/SC { InputMethods.performSCKeyRelease(kvp.Key); - //InputMethods.performKeyRelease(kvp.Key); pressagain = false; } else { - InputMethods.ReleaseKeys(kvp.Key); - //InputMethods.performKeyRelease(kvp.Key); + InputMethods.performKeyRelease(kvp.Key); pressagain = false; } } diff --git a/DS4Tool/Properties/AssemblyInfo.cs b/DS4Tool/Properties/AssemblyInfo.cs index 5809862..4f9dadf 100644 --- a/DS4Tool/Properties/AssemblyInfo.cs +++ b/DS4Tool/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.4.2")] -[assembly: AssemblyFileVersion("1.4.2")] +[assembly: AssemblyVersion("1.4.201")] +[assembly: AssemblyFileVersion("1.4.201")]