[gpm]Synaptic 4 way button patch + more

Troy Schultz tschultz@canada.com
17 Apr 2002 14:56:10 -0400


Peter

I have made a small change to correct the vertical movement direction if
the 4-way button is used as mouse.  The patch is as follows;

--- synaptics.c.p5	Wed Apr 17 07:31:58 2002
+++ synaptics.c	Wed Apr 17 14:48:41 2002
@@ -996,9 +996,9 @@
 	if (four_way_button_is_mouse){
 	  /* Report motion */
 	  if (report->x & 1) /* UP */
-	    state->dy = 1;
-	  if (report->y & 1) /* DOWN */
 	    state->dy = -1;
+	  if (report->y & 1) /* DOWN */
+	    state->dy = 1;
 	  if (report->x & 2) /* LEFT */
 	    state->dx = -1;
 	  if (report->y & 2) /* RIGHT */

I have also been able to verify the corner click to toggle the 4-way button.
I found I could override the setting for X and Y center coordinates in gpm-syn.conf.

Best Regards
- Troy Schultz