Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 XKB mouse button emulation

open
nobody
None
5
2001-05-14
2001-05-14
Anonymous
No

[Q] X on Mac OS X - XKB mouse button emulation

I am running XFree86 4.0.3 w/ XAqua 0.5 on Max OS X. I
would like to
use XKB to map keys to mouse button 2 and mouse button 3
(command-2 and
command-3 respectively).

However, I'm having difficulties getting this to work.
The
documentation is sparse and most newsgroup postings talk
about the
XFree86Config file which is not used on Macs.

It seems as if mouse button presses are defined in
/etc/X11/xkb/compat/mousekeys. However, I can't seem to
activate what
is defined in mousekeys. Do I have to use xkbcomp to
compile the
definitions for this to work? Once I complie how to I
install this
compiled document into the Xserver? There are no .xbd
or .xkm files on
my system now so I didn't think I had to do this.

One source suggested that I use:

xmodmap -e "keysym Num_Lock = Num_Lock
Pointer_EnableKeys"

to activate mousekeys. However, xmodmap does not accept
Num_Lock as an
argument. If I change this to use F15 then, I can
activate "some" mode
where KP_5 is button 1 and KP_0 is button 1 press and
KP_. is button 1
release. However, none of the other definitions in
mousekeys work.

How do I activate all the definitions in mousekeys? I
didn't want to
change mousekeys file to map command-2 and command-3
until I actually
saw what was defined there working.

What would be the syntax for changes to mousekeys to map
command-2
instead of KP_Multiply and command-3 instead of
KP_Subtract?

How do I get this to be enabled by default?

Pls. let me know how I should proceed, or point me to a
reference to
read.

Matt

Discussion