mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 19:14:20 +01:00
Make sure one full wheel click is used per action
This commit is contained in:
parent
2622aa46b6
commit
6ab0f3f020
@ -219,18 +219,18 @@ namespace DS4Windows
|
|||||||
|
|
||||||
if (globalState.currentClicks.wUpCount != 0 && globalState.previousClicks.wUpCount == 0)
|
if (globalState.currentClicks.wUpCount != 0 && globalState.previousClicks.wUpCount == 0)
|
||||||
{
|
{
|
||||||
InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_WHEEL, 100);
|
InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_WHEEL, 120);
|
||||||
oldnow = DateTime.UtcNow;
|
oldnow = DateTime.UtcNow;
|
||||||
wheel = 100;
|
wheel = 120;
|
||||||
}
|
}
|
||||||
else if (globalState.currentClicks.wUpCount == 0 && globalState.previousClicks.wUpCount != 0)
|
else if (globalState.currentClicks.wUpCount == 0 && globalState.previousClicks.wUpCount != 0)
|
||||||
wheel = 0;
|
wheel = 0;
|
||||||
|
|
||||||
if (globalState.currentClicks.wDownCount != 0 && globalState.previousClicks.wDownCount == 0)
|
if (globalState.currentClicks.wDownCount != 0 && globalState.previousClicks.wDownCount == 0)
|
||||||
{
|
{
|
||||||
InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_WHEEL, -100);
|
InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_WHEEL, -120);
|
||||||
oldnow = DateTime.UtcNow;
|
oldnow = DateTime.UtcNow;
|
||||||
wheel = -100;
|
wheel = -120;
|
||||||
}
|
}
|
||||||
if (globalState.currentClicks.wDownCount == 0 && globalState.previousClicks.wDownCount != 0)
|
if (globalState.currentClicks.wDownCount == 0 && globalState.previousClicks.wDownCount != 0)
|
||||||
wheel = 0;
|
wheel = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user