patch-2.3.17 linux/drivers/char/atarimouse.c

Next file: linux/drivers/char/istallion.c
Previous file: linux/drivers/char/applicom.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.16/linux/drivers/char/atarimouse.c linux/drivers/char/atarimouse.c
@@ -43,12 +43,12 @@
 
 /*    ikbd_mouse_disable(); */
 
-    buttons = ((buf[0] & 1 ? 1 : 0)
-	       | (buf[0] & 2 ? 4 : 0)
+    buttons = ((buf[0] & 1)
+	       | ((buf[0] & 2) << 1)
 	       | (atari_mouse_buttons & 2));
     atari_mouse_buttons = buttons;
 
-    busmouse_add_movementbuttons(msedev, buf[1], -buf[2], buttons);
+    busmouse_add_movementbuttons(msedev, buf[1], -buf[2], buttons ^ 7);
 /*    ikbd_mouse_rel_pos(); */
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)