Subject: Re: wsmouse events
To: None <current-users@netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: current-users
Date: 02/26/2001 21:10:54
seebs@plethora.net (Peter Seebach) writes:
> so it *thinks* it has a scroll wheel, but no events from the extra buttons
> seem to be coming into X at all.

When you run xev and spin the scroll wheel you should see a pair of
"press/release" events for every "snap" indent of the wheel:

    ButtonPress event, serial 23, synthetic NO, window 0x1000001,
        root 0x32, subw 0x0, time 3997240160, (63,100), root:(396,848),
        state 0x0, button 4, same_screen YES

    ButtonRelease event, serial 23, synthetic NO, window 0x1000001,
        root 0x32, subw 0x0, time 3997240160, (63,100), root:(396,848),
        state 0x800, button 4, same_screen YES

Wheel mice need a config of 5 buttons.  A second problem is you can't
have an "emulate3buttons" line -- that feature is just flat out
broken.  Under XFree86 4.0.2 the following XF86Config should do:

    Section "InputDevice"
            Identifier  "Mouse0"
            Driver      "mouse"
            Option      "Protocol" "wsmouse"
            Option      "Device" "/dev/wsmouse"
            Option 	    "Buttons" "5"
            Option	    "ZAxisMapping"  "4 5"
    EndSection

-wolfgang
-- 
       Wolfgang Rupprecht <wolfgang+gnus@dailyplanet.wsrcc.com>
		    http://www.wsrcc.com/wolfgang/
Coming soon: GPS mapping tools for Open Systems. http://www.gnomad-mapping.com/