Windows: Kill the mouse wheel release timer after it's used to prevent spamming keyup events.
This commit is contained in:
parent
e3a40e9cd7
commit
f57b8b19d2
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue