More mouse fixes.

This commit is contained in:
OBattler
2023-08-12 17:56:44 +02:00
parent 01e7394101
commit 0ac3bb1620
3 changed files with 14 additions and 4 deletions

View File

@@ -279,7 +279,7 @@ sermouse_report_ms(mouse_t *dev)
int b = mouse_get_buttons_ex();
mouse_subtract_coords(&delta_x, &delta_y, NULL, NULL, -128, 127, 0, 0);
mouse_subtract_z(&delta_z, -8, 7, 1);
mouse_subtract_z(&delta_z, -8, 7, 0);
dev->buf[0] = 0x40;
dev->buf[0] |= (((delta_y >> 6) & 0x03) << 2);