Click to See Complete Forum and Search --> : Emulating 3-Button mice on Apple's one-button mouse


Farruinn
11-29-2002, 10:21 PM
I have an old beige G3 that came with an ADB uni-button mouse. I've got it running Debian with X installed, but I'm unable to do a lot of things in the desktop managers without second and third buttons. I know that there are ways to emulate a three button mouse, but they haven't worked for me. The Debian install manual suggests adding these lines to /etc/sysctl.conf:

# 3-button mouse emulation
# turn on emulation
/dev/mac_hid/mouse_button_emulation = 1
# Send middle mouse button signal with the F11 key
/dev/mac_hid/mouse_button2_keycode = 87
# Send right mouse button signal with the F12 key
/dev/mac_hid/mouse_button3_keycode = 88
# For different keys, use showkey to tell you what the code is.

I've run xev to find what various keycodes are for my keyboard, but when I restart with these lines in my sysctl.conf file it doesn't work like it should: once I did get some emulation, but it was the wrong button on the wrong keycode, so I don't know what happened there.

If anyone has any experience on this I would greatly appreciate the help. Also, I think this is deserving of an NHF file - I've been trying to track down documentation on this subject but can't find any answers.

Thanks in advance,
-Nate

JohnT
11-29-2002, 10:43 PM
I assume your running the "PPC" version of Debian?

Farruinn
11-30-2002, 12:51 PM
My previous post can be ignored - I've gotten the mouse emulation to work. xev and showkey gave me different keycode numbers. I hadn't tried showkey yet because some one had said to use xev, but the showkey -k command gave me the numbers I needed.

It's nice to have a three-button mouse =)
-Nate

solo
11-30-2002, 01:06 PM
Originally posted by Farruinn
My previous post can be ignored - I've gotten the mouse emulation to work. xev and showkey gave me different keycode numbers. I hadn't tried showkey yet because some one had said to use xev, but the showkey -k command gave me the numbers I needed.

It's nice to have a three-button mouse =)
-Nate

It seems that there are differences between the ADB way to do it, versus the USB way (non-Mac folk seem to kind of gloss over that difference for some reason). Will you be the one who writes the NHF for this topic ;) ?