mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
b1fcc40cea
commit
c3063373bc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue