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:
parent
765f665164
commit
c27211157e
|
|
@ -194,10 +194,6 @@ LONG WINAPI MainWndProc (
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
case WM_MOUSEWHEEL:
|
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
|
// 120 increments, might be 240 and multiples if wheel goes too fast
|
||||||
// NOTE Logitech: logitech drivers are screwed and send the message twice?
|
// NOTE Logitech: logitech drivers are screwed and send the message twice?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user