[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mouse click from keyboard button



On Fri, Aug 02, 2002 at 01:36:33 +0200, Kalle Hasselström wrote:
> My laptop's built-in mouse only has two buttons.

You're lucky, my laptop has only one button. :(

> I'd like to use a keyboard key to generate middle button clicks
> (specifically, I'd like to use the caps lock key).

> Can this be done, and if so, how?

Yes, but this depends on your laptop. On my Titanium, I had to add
the following lines to /etc/sysctl.conf:

dev.mac_hid.mouse_button_emulation = 1
dev.mac_hid.mouse_button2_keycode = 96
dev.mac_hid.mouse_button3_keycode = 56

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Reply to: