From 801d5b7232e29286d1b9f387a0d30620d126d94a Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sat, 26 Aug 2023 13:31:05 -0300 Subject: [PATCH] mouse_ps2: Fix wheel inversion --- src/device/mouse_ps2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/device/mouse_ps2.c b/src/device/mouse_ps2.c index 35f0cd9e8..be8fd324f 100644 --- a/src/device/mouse_ps2.c +++ b/src/device/mouse_ps2.c @@ -96,6 +96,7 @@ ps2_report_coordinates(atkbc_dev_t *dev, int main) kbc_at_dev_queue_add(dev, buff[1], main); kbc_at_dev_queue_add(dev, buff[2], main); if (dev->flags & FLAG_INTMODE) { + delta_z = -delta_z; delta_z &= 0x0f; if (dev->flags & FLAG_5BTN) {