Make sure one full wheel click is used per action

This commit is contained in:
Travis Nickles 2017-10-05 22:00:04 -05:00
parent 2622aa46b6
commit 6ab0f3f020

View File

@ -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;