From 0a8f71e76e50646cf4a0b32b7e769acc143d6065 Mon Sep 17 00:00:00 2001 From: Lucy Phipps Date: Sat, 21 Oct 2023 17:02:27 +0100 Subject: [PATCH] USB: Fix inverted mouse wheel (#10158) fixes usb mouse wheel inputs for e.g. Half-Life --- pcsx2/USB/usb-hid/usb-hid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/USB/usb-hid/usb-hid.cpp b/pcsx2/USB/usb-hid/usb-hid.cpp index 67f60b95cefe3..35d16224f1ad1 100644 --- a/pcsx2/USB/usb-hid/usb-hid.cpp +++ b/pcsx2/USB/usb-hid/usb-hid.cpp @@ -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);