Bug 2390

Summary: MSE_MAXBUTTONS too small
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:19:30 UTC
MSE_MAXBUTTONS is defined as 12 in xf86OSmouse.h

On Linux, the evdev protocol supports mice with up to 16 buttons, which with
zaxis mapping means MSE_MAXBUTTONS should be at least 20.

Example: my Logitech MediaPlay has 13 physical buttons and a scroll wheel.

As far as I can tell, changing MSE_MAXBUTTONS to up to 31 should be OK, as the
mouse driver holds a button bit map in an "int" but there might be other
dependencies I don't know about.

(also raised as XFree86 bug 1536)
Comment 1 Eric Anholt 2005-05-09 16:26:23 UTC
Maximum number of buttons has been increased from 12 to 24.  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.