Re: 3 button emulations under X
This option is available under the new input layer (2.2.18 and up on the mac
All I needed to do to get things to work was :
>echo "1" >/proc/sys/dev/mac_hid/mouse_button_emulation
>echo "97" >/proc/sys/dev/mac_hid/mouse_button2_keycode
>echo "100" >/proc/sys/dev/mac_hid/mouse_button3_keycode
and try it out.
Note: keycode values may vary depending on the keyboard you are using. I own
an external extended keyboard. Here the button 2 corresponds to right option
key and button 3 corresponds to right control key.
To make things more permanent after I was happy with this configuration, I
added 3 lines to my /etc/sysctl.conf file :
>sysctl -p /etc/sysctl.conf
to make the changes effective.
One last word: do yourself a favor and buy a 3-button mouse. The real thing
is way easier to handle.
> From: David Howe <email@example.com>
> Date: Fri, 28 Sep 2001 21:45:37 +1000
> To: Linux PPC <firstname.lastname@example.org>
> Subject: 3 button emulations under X
> Resent-From: email@example.com
> Hi Folks
> I read somewhere that I can map my keyboard buttons to emulate buttons 2
> & 3 for my adb mouse.
> Can someone help me out?
> thanks in advance
> To UNSUBSCRIBE, email to firstname.lastname@example.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com