Fix mouse wheel input

Thanks Yiğit Güçlü for reporting issue with mouse wheel.
Now it should work the same way as in the orignal game.
This commit is contained in:
Artem Kharytoniuk 2021-06-17 00:10:59 +02:00
parent 765f665164
commit c27211157e

View File

@ -194,10 +194,6 @@ LONG WINAPI MainWndProc (
switch (uMsg)
{
case WM_MOUSEWHEEL:
// Windows 98/Me, Windows NT 4.0 and later - uses WM_MOUSEWHEEL
// only relevant for non-DI input and when console is toggled in window mode
// if console is toggled in window mode (KEYCATCH_CONSOLE) then mouse is released and DI doesn't see any mouse wheel
if (!r_fullscreen->integer && (cls.keyCatchers & KEYCATCH_CONSOLE))
{
// 120 increments, might be 240 and multiples if wheel goes too fast
// NOTE Logitech: logitech drivers are screwed and send the message twice?