diff options
author | cmf028 <cmf1292@hotmail.com> | 2013-09-20 20:12:17 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 11:03:29 +0100 |
commit | fffbf565dd4106e954c172662f0a4983ce99eeb3 (patch) | |
tree | 6374bb59b79ec128b2b9906188c8b5ce98d1ec61 /src/sdl/sdl_input.c | |
parent | dd7322f89a713c8c3007208a1bd174abd8aa9652 (diff) |
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
Diffstat (limited to 'src/sdl/sdl_input.c')
-rw-r--r-- | src/sdl/sdl_input.c | 6 |
1 files changed, 6 insertions, 0 deletions
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: |