> I'm trying to get a 2nd and 3rd mouse button working in XFree 4.0.2. I'm > running kernel 2.4.2-pre3 from bitkeeper's sources. I have the following > relevant options in my kerenl conifg: > > CONFIG_USB=y > CONFIG_USB_HID=y > CONFIG_INPUT_KEYBDEV=y > CONFIG_INPUT_MOUSEDEV=y > CONFIG_INPUT_EVDEV=y > CONFIG_INPUT_ADBHID=y > > > /etc/sysctl.conf: > > dev.mac_hid.mouse_button2_keycode = 101 > dev.mac_hid.mouse_button3_keycode = 109 > dev.mac_hid.mouse_button_emulation = 1
I did a grep for 101 and 109 across linux/include/input.h - 101 is the lineffed key (?) and 109 is the pagedown key. Personally I use echo 1 > /proc/sys/dev/mac_hid/mouse_button_emulation echo 87 > /proc/sys/dev/mac_hid/mouse_button2_keycode echo 88 > /proc/sys/dev/mac_hid/mouse_button3_keycode which sets F11 to the MMB and F12 to the RMB. -- Michael

