input: Fix SDL2 mouse wheel up/down behaviour.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1081 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
svdijk 2014-10-05 15:25:31 +00:00
parent b1fcc40cea
commit c3063373bc

View file

@ -668,13 +668,13 @@ void IN_SendKeyEvents (void)
case SDL_MOUSEWHEEL:
if (event.wheel.y > 0)
{
Key_Event(K_MWHEELUP, false);
Key_Event(K_MWHEELUP, true);
Key_Event(K_MWHEELUP, false);
}
else if (event.wheel.y < 0)
{
Key_Event(K_MWHEELDOWN, false);
Key_Event(K_MWHEELDOWN, true);
Key_Event(K_MWHEELDOWN, false);
}
break;
#endif