From fffbf565dd4106e954c172662f0a4983ce99eeb3 Mon Sep 17 00:00:00 2001 From: cmf028 Date: Fri, 20 Sep 2013 20:12:17 -0500 Subject: Send key up events for the mouse wheel Previous versions of SDL would send SDL_MOUSEBUTTONUP events for the mouse wheel immediately following the corresponding SDL_MOUSEBUTTONDOWN event --- src/sdl/sdl_input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c index a369799a..f241f225 100644 --- a/src/sdl/sdl_input.c +++ b/src/sdl/sdl_input.c @@ -856,9 +856,15 @@ static void IN_ProcessEvents( void ) case SDL_MOUSEWHEEL: if( e.wheel.y > 0 ) + { Com_QueueEvent( 0, SE_KEY, K_MWHEELUP, qtrue, 0, NULL ); + Com_QueueEvent( 0, SE_KEY, K_MWHEELUP, qfalse, 0, NULL ); + } else + { Com_QueueEvent( 0, SE_KEY, K_MWHEELDOWN, qtrue, 0, NULL ); + Com_QueueEvent( 0, SE_KEY, K_MWHEELDOWN, qfalse, 0, NULL ); + } break; case SDL_QUIT: -- cgit