mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +01:00
Version 1.4.201
Fixed Scan Code
This commit is contained in:
parent
7673d6351a
commit
1d31d71332
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user