From 4b08d9746296a4d9fc756a059f2bfba3490192a6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 15 Aug 2005 23:48:35 +0000 Subject: [PATCH] Set ZAxisMapping default to "4 5 6 7". --- README.sgml | 3 ++- man/mouse.man | 2 +- src/mouse.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.sgml b/README.sgml index 70eb869..78a0ffd 100644 --- a/README.sgml +++ b/README.sgml @@ -485,7 +485,8 @@ Moreover, there are some mice whose two wheels are both mounted vertically, and the direction of the second vertical wheel does not match the first one's. -You need to edit the xorg.conf file by hand to add this option. +You need to edit the xorg.conf file by hand to change this option if +the default value of "4 5 6 7" does not match the needs of your configuration. Resolution

The following option will set the mouse device resolution to N diff --git a/man/mouse.man b/man/mouse.man index efd12fb..46d2d0d 100644 --- a/man/mouse.man +++ b/man/mouse.man @@ -161,7 +161,7 @@ of the second wheel mapped respectively to buttons number .I N3 and .IR N4 . -Default: no mapping. +Default: "4 5 6 7". .TP 7 .BI "Option \*qFlipXY\*q \*q" boolean \*q Enable/disable swapping the X and Y axes. This transformation is applied diff --git a/src/mouse.c b/src/mouse.c index 8154a7f..ff2f7c8 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -535,7 +535,7 @@ MouseCommonOptions(InputInfoPtr pInfo) } } - s = xf86SetStrOption(pInfo->options, "ZAxisMapping", NULL); + s = xf86SetStrOption(pInfo->options, "ZAxisMapping", "4 5 6 7"); if (s) { int b1 = 0, b2 = 0, b3 = 0, b4 = 0; char *msg = NULL;