Bug#197771: xfree86-common should configure mouse button emulation on PPC
Package: xfree86-common
Version: 4.2.1-8
Laptops made by Apple have only one mouse button. In order to get around this
limitation, the Linux kernel can simulate mouse clicks using certain keyboard
keys. However, this must be configured using the kernel's sysctl interface.
Xfree86-common should generate entries in /etc/sysctl.conf for mouse button
emulation. The following is an example /etc/sysctl.conf fragment:
# Activate Mouse Buttons; see <linux/input.h>
dev.mac_hid.mouse_button_emulation=1
dev.mac_hid.mouse_button3_keycode=96 # KEY_KPENTER
dev.mac_hid.mouse_button2_keycode=87 # KEY_F11
This example maps the keypad enter key to a mouse's right-click and the F11 key
to a mouse's middle-click. Ideally, a script would prompt the user to set these
values, depending on his preferences.
This would allow mouse button emulation to work out of the box when using Debian.
Reply to: