From 620f16ea917fc463ff326963e874b0bbda594282 Mon Sep 17 00:00:00 2001 From: RonaldReagan Date: Mon, 10 May 2021 07:02:40 -0600 Subject: [PATCH] #329 Prevent interpreting horizontal scrolling as clicking --- source/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/main.cpp b/source/src/main.cpp index 909ba2c4..d01b06ee 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -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); }