mirror of https://github.com/PCSX2/pcsx2.git
USB: Fix inverted mouse wheel (#10158)
fixes usb mouse wheel inputs for e.g. Half-Life
This commit is contained in:
parent
833cb48050
commit
0a8f71e76e
|
@ -858,7 +858,7 @@ namespace usb_hid
|
||||||
{
|
{
|
||||||
InputEvent evt;
|
InputEvent evt;
|
||||||
evt.type = INPUT_EVENT_KIND_BTN;
|
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;
|
evt.u.btn.down = true;
|
||||||
hid.ptr.eh_entry(&hid, &evt);
|
hid.ptr.eh_entry(&hid, &evt);
|
||||||
hid.ptr.eh_sync(&hid);
|
hid.ptr.eh_sync(&hid);
|
||||||
|
|
Loading…
Reference in New Issue