From c27211157e0391e5f5df548e02779a7ddb6aaccb Mon Sep 17 00:00:00 2001 From: Artem Kharytoniuk Date: Thu, 17 Jun 2021 00:10:59 +0200 Subject: [PATCH] Fix mouse wheel input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks Yiğit Güçlü for reporting issue with mouse wheel. Now it should work the same way as in the orignal game. --- src/engine/platform/win_wndproc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/engine/platform/win_wndproc.c b/src/engine/platform/win_wndproc.c index 8f34199..382ce6e 100644 --- a/src/engine/platform/win_wndproc.c +++ b/src/engine/platform/win_wndproc.c @@ -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?