Make sure bit 3 of the first PS/2 mouse packet is always set.

This commit is contained in:
OBattler
2023-08-12 12:10:35 +02:00
parent fb6851a865
commit 24ff4a2498

View File

@@ -86,7 +86,7 @@ ps2_report_coordinates(atkbc_dev_t *dev, int main)
-256, 255, 1, 0);
mouse_subtract_z(&delta_z, -8, 7, 1);
buff[0] = (overflow_y << 7) | (overflow_x << 6) |
buff[0] |= (overflow_y << 7) | (overflow_x << 6) |
((delta_y & 0x0100) >> 3) | ((delta_x & 0x0100) >> 4) |
(b & ((dev->flags & FLAG_INTELLI) ? 0x07 : 0x03));
buff[1] = (delta_x & 0x00ff);