#329 Prevent interpreting horizontal scrolling as clicking

This commit is contained in:
RonaldReagan
2021-05-10 07:02:40 -06:00
parent 2655c748c5
commit 620f16ea91
+1 -1
View File
@@ -1007,7 +1007,7 @@ void checkinput()
}
if(event.wheel.x)
{
int key = event.wheel.x > 0 ? SDL_AC_BUTTON_RIGHT : SDL_AC_BUTTON_LEFT;
int key = event.wheel.x > 0 ? SDL_AC_BUTTON_WHEELRIGHT : SDL_AC_BUTTON_WHEELLEFT;
keypress(key, 0, true);
keypress(key, 0, false);
}