aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mousetsr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mousetsr.c b/mousetsr.c
index 85230cc..2c387e4 100644
--- a/mousetsr.c
+++ b/mousetsr.c
@@ -848,13 +848,13 @@ static void handle_ps2_packet(void)
}
if (vmw.status & VMWARE_ABSPOINTER_STATUS_BUTTON_LEFT) {
- status |= PS2M_STATUS_BUTTON_1;
+ buttons |= PS2M_STATUS_BUTTON_1;
}
if (vmw.status & VMWARE_ABSPOINTER_STATUS_BUTTON_RIGHT) {
- status |= PS2M_STATUS_BUTTON_2;
+ buttons |= PS2M_STATUS_BUTTON_2;
}
if (vmw.status & VMWARE_ABSPOINTER_STATUS_BUTTON_MIDDLE) {
- status |= PS2M_STATUS_BUTTON_3;
+ buttons |= PS2M_STATUS_BUTTON_3;
}
} else {
return; // Ignore the PS/2 packet otherwise, it is likely garbage