From 5082548bf503b21b764c0ea0f79d6625c38d4474 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 29 May 2015 16:38:43 -0500 Subject: [PATCH] Horizontal scroll should not cause K_MWHEELDOWN key press --- code/sdl/sdl_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index b4cd3bbe..4869d286 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -833,7 +833,7 @@ static void IN_ProcessEvents( void ) Com_QueueEvent( 0, SE_KEY, K_MWHEELUP, qtrue, 0, NULL ); Com_QueueEvent( 0, SE_KEY, K_MWHEELUP, qfalse, 0, NULL ); } - else + else if( e.wheel.y < 0 ) { Com_QueueEvent( 0, SE_KEY, K_MWHEELDOWN, qtrue, 0, NULL ); Com_QueueEvent( 0, SE_KEY, K_MWHEELDOWN, qfalse, 0, NULL );