From f971ce91fe8b01c521e2f812bbe7834f4d5810d1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 15 Nov 2000 04:01:27 +0000 Subject: [PATCH] fix the double wheel events --- source/in_sdl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/in_sdl.c b/source/in_sdl.c index ccfef7f..285c6a2 100644 --- a/source/in_sdl.c +++ b/source/in_sdl.c @@ -188,12 +188,10 @@ IN_SendKeyEvents (void) == SDL_MOUSEBUTTONDOWN); break; case 4: - Key_Event(K_MWHEELUP, 1); - Key_Event(K_MWHEELUP, 0); + Key_Event(K_MWHEELUP, event.type == SDL_MOUSEBUTTONDOWN); break; case 5: - Key_Event(K_MWHEELDOWN, 1); - Key_Event(K_MWHEELDOWN, 0); + Key_Event(K_MWHEELDOWN, event.type == SDL_MOUSEBUTTONDOWN); break; } break;