mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
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:
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue