Vertikal and Horizontal Scroll of (mighty) mice

Eric Kjeldergaard kjelderg at gmail.com
Sat Oct 8 21:47:36 PDT 2005


On 8/25/05, Arne Schwabe <arne at rfc2549.org> wrote:
> Hi,
>
> I just got myself myself a shiny white Mighty Mouse from Apple.
>
> I now have the Problem that Wheel if the scrolling to left and right.
> I fixed this by teaching ums.c to prefer WHEEL over Z but it would be
> nice to support both wheel and z axis scrolling. I checked the mouse(4)
> but the dataformat there does not even support a forth axis. Hacking
> ums.c to map z axis to buttons 7 and 8 would be possible, but not a
> clean solution. Another Option would be to add a z2 axis or something
> tothe SYSMOUSE format.
>
> What are your opinion?

moused supports horizontal scrolling using 2 and -2 instead of 1 and
-1 as values for the zaxis.  xorg handles it similarly so for x to do
horizontal and vertical, it should have something like
Option  "Buttons" "7"
Option  "ZAxisMapping" "4 5 6 7"

Hope that helps,

Eric

--
If I write a signature, my emails will appear more personalised.


More information about the freebsd-hackers mailing list