From 48ba2975aaab875146017629f1d9d038755cb545 Mon Sep 17 00:00:00 2001 From: Ryan Hendrickson Date: Sat, 7 Sep 2024 23:40:54 -0400 Subject: [PATCH] fix: button 6 is wheel left; button 7 is wheel right --- src/eventhandlers/uinputeventhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eventhandlers/uinputeventhandler.cpp b/src/eventhandlers/uinputeventhandler.cpp index 58577dc07..17879e5da 100644 --- a/src/eventhandlers/uinputeventhandler.cpp +++ b/src/eventhandlers/uinputeventhandler.cpp @@ -233,13 +233,13 @@ void UInputEventHandler::sendMouseButtonEvent(JoyButtonSlot *slot, bool pressed) { if (pressed) { - write_uinput_event(mouseFileHandler, EV_REL, REL_HWHEEL, 1); + write_uinput_event(mouseFileHandler, EV_REL, REL_HWHEEL, -1); } } else if (code == 7) { if (pressed) { - write_uinput_event(mouseFileHandler, EV_REL, REL_HWHEEL, -1); + write_uinput_event(mouseFileHandler, EV_REL, REL_HWHEEL, 1); } } else if (code == 8) {