From c1613776cea3b2d76277888e352ba9a52dc5ce05 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 25 Aug 2023 05:58:04 +0200 Subject: [PATCH] Fixed the wheel inversion on the PS/2 mouse. --- src/device/mouse_ps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/mouse_ps2.c b/src/device/mouse_ps2.c index c05753afb..35f0cd9e8 100644 --- a/src/device/mouse_ps2.c +++ b/src/device/mouse_ps2.c @@ -84,7 +84,7 @@ ps2_report_coordinates(atkbc_dev_t *dev, int main) mouse_subtract_coords(&delta_x, &delta_y, &overflow_x, &overflow_y, -256, 255, 1, 0); - mouse_subtract_z(&delta_z, -8, 7, 0); + mouse_subtract_z(&delta_z, -8, 7, 1); buff[0] |= (overflow_y << 7) | (overflow_x << 6) | ((delta_y & 0x0100) >> 3) | ((delta_x & 0x0100) >> 4) |