aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2024-09-05 00:54:55 +0200
committerJavier <dev.git@javispedro.com>2024-09-05 00:54:55 +0200
commit076febba4f5e42604dac5eb46d7955a2e27c5dd5 (patch)
treea62efd8deccf72f434b6818aba4c9e798db6d8c9
parent30c7e4b90d4944311d1e5df23482178cc5af102f (diff)
downloadvbados-076febba4f5e42604dac5eb46d7955a2e27c5dd5.tar.gz
vbados-076febba4f5e42604dac5eb46d7955a2e27c5dd5.zip
vbmouse: undo reversing horizontal wheel direction. it seems a virtualbox-only issue.
-rw-r--r--mousetsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mousetsr.c b/mousetsr.c
index cac1808..75fc769 100644
--- a/mousetsr.c
+++ b/mousetsr.c
@@ -768,7 +768,7 @@ static void handle_ps2_packet(void)
z = sign_extend(data.ps2_packet[3], 6);
} else if (data.ps2_packet[3] & PS2M_IMEX_HORIZONTAL_SCROLL) {
// Horizontal scrolling, with 6 bits of precision.
- z = -sign_extend(data.ps2_packet[3], 6);
+ z = sign_extend(data.ps2_packet[3], 6);
wheeln = 1;
} else {
// Or 2 extra buttons (4, 5)