Bug 2389

Summary: max number of buttons not documented
Product: xorg Reporter: Julian Cable <julian_cable>
Component: Input/MouseAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Julian Cable 2005-01-27 00:17:32 UTC
There is a hard limit on the number of buttons supported on a mouse defined in
xf86OSmouse.h by MSE_MAXBUTTONS. I couldn't find anywhere in the user
documentation that there was a limit, or what the limit was. The current limit
is 12, which completeley defeated my XF86Config-4 entry:

        Option      "Buttons" "15"
        Option      "ZAxisMapping" "14 15"

To cope with my 13 button Logitech MediaPlay mouse with scroll wheel.

(also raised on XFREE86 as bug #1537
Comment 1 Cy Schubert 2005-05-07 22:33:52 UTC
Patch:

Index: files/patch-xf86OSmouse.h
===================================================================
RCS file: files/patch-xf86OSmouse.h
diff -N files/patch-xf86OSmouse.h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ files/patch-xf86OSmouse.h   8 May 2005 03:53:03 -0000
@@ -0,0 +1,11 @@
+--- programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h.orig  Sat Jul 24
10:35:39 2004
++++ programs/Xserver/hw/xfree86/os-support/xf86OSmouse.h       Sat May  7
20:47:45 2005
+@@ -281,7 +281,7 @@
+ /* Generalize for other axes. */
+ #define MSE_NOAXISMAP MSE_NOZMAP
+ 
+-#define MSE_MAXBUTTONS        12
++#define MSE_MAXBUTTONS        16
+ #define MSE_DFLTBUTTONS        3
+ 
+ #endif /* _XF86OSMOUSE_H_ */
Comment 2 Eric Anholt 2005-05-09 16:33:41 UTC
Fixed, thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.