Skip to content

Commit

Permalink
fix: button 6 is wheel left; button 7 is wheel right
Browse files Browse the repository at this point in the history
  • Loading branch information
rhendric authored and pktiuk committed Sep 8, 2024
1 parent 28d1056 commit d87a5df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eventhandlers/uinputeventhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit d87a5df

Please sign in to comment.