Re: map 2nd 3rd mouse buttons?
On Tue, 19 Mar 2002, ragnar wrote:
> I'm using a powerbook 3400c which of course has a one button touch pad.
> Does anyone know how to map mouse events generated by a middle and right
> button click of a typical 3-button mouse to either a keyboard key or
> combo of key and mouse click?
This was one of my first questions after migrating my lombard to debian..
the solution is painless. Add the following lines to /etc/sysctl.conf
dev.mac_hid.mouse_button2_keycode = 87
dev.mac_hid.mouse_button3_keycode = 88
dev.mac_hid.mouse_button_emulation = 1
which binds the middle and right mouse buttons to f11 and f12
respectively, after you run 'sysctl -p' which will apply the new lines
from sysctl.conf
If you don't like f11 and f12, you'll have to look up the keycodes for the
other keys. =)
Brian
fade@etc.etc.etc.
"You can't depend on your judgement when your imagination
is out of focus." -- Mark Twain
--
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: