Skip to content

Commit

Permalink
USB: Fix inverted mouse wheel (#10158)
Browse files Browse the repository at this point in the history
fixes usb mouse wheel inputs for e.g. Half-Life
  • Loading branch information
landfillbaby authored Oct 21, 2023
1 parent 833cb48 commit 0a8f71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/USB/usb-hid/usb-hid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ namespace usb_hid
{
InputEvent evt;
evt.type = INPUT_EVENT_KIND_BTN;
evt.u.btn.button = (delta > 0.0f) ? INPUT_BUTTON_WHEEL_DOWN : INPUT_BUTTON_WHEEL_UP;
evt.u.btn.button = (delta > 0.0f) ? INPUT_BUTTON_WHEEL_UP : INPUT_BUTTON_WHEEL_DOWN;
evt.u.btn.down = true;
hid.ptr.eh_entry(&hid, &evt);
hid.ptr.eh_sync(&hid);
Expand Down

0 comments on commit 0a8f71e

Please sign in to comment.