mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
Windows: Kill the mouse wheel release timer after it's used to prevent spamming keyup events.
This commit is contained in:
1 parent
e3a40e9cd7
commit
f57b8b19d2
1 file changed
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user