Skip to content
Permalink
Browse files

Windows: Kill the mouse wheel release timer after it's used to preven…

…t spamming keyup events.
  • Loading branch information...
hrydgard committed Sep 2, 2019
1 parent e3a40e9 commit f57b8b19d27badf153e8dba6c84c579929ea66c5
Showing with 3 additions and 2 deletions.
  1. +3 −2 Windows/MainWindow.cpp
@@ -258,7 +258,7 @@ namespace MainWindow
}
}

void RelaseMouseWheel() {
void ReleaseMouseWheel() {
// For simplicity release both wheel events
KeyInput key;
key.deviceId = DEVICE_ID_MOUSE;
@@ -816,7 +816,8 @@ namespace MainWindow
return 0;
// Hack: need to release wheel event with a delay for games to register it was "pressed down".
case TIMER_WHEELRELEASE:
RelaseMouseWheel();
ReleaseMouseWheel();
KillTimer(hWnd, TIMER_WHEELRELEASE);
return 0;
}
break;

0 comments on commit f57b8b1

Please sign in to comment.
You can’t perform that action at this time.