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
This commit is contained in:
parent
7d83bba2d0
commit
11c3bed74d
1 changed files with 6 additions and 0 deletions
|
@ -807,9 +807,15 @@ static void IN_ProcessEvents( void )
|
||||||
|
|
||||||
case SDL_MOUSEWHEEL:
|
case SDL_MOUSEWHEEL:
|
||||||
if( e.wheel.y > 0 )
|
if( e.wheel.y > 0 )
|
||||||
|
{
|
||||||
Com_QueueEvent( 0, SE_KEY, K_MWHEELUP, qtrue, 0, NULL );
|
Com_QueueEvent( 0, SE_KEY, K_MWHEELUP, qtrue, 0, NULL );
|
||||||
|
Com_QueueEvent( 0, SE_KEY, K_MWHEELUP, qfalse, 0, NULL );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
Com_QueueEvent( 0, SE_KEY, K_MWHEELDOWN, qtrue, 0, NULL );
|
Com_QueueEvent( 0, SE_KEY, K_MWHEELDOWN, qtrue, 0, NULL );
|
||||||
|
Com_QueueEvent( 0, SE_KEY, K_MWHEELDOWN, qfalse, 0, NULL );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_QUIT:
|
case SDL_QUIT:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue