Subject: option key as alt under X?
To: None <port-mac68k@netbsd.org>
From: John Valdes <valdes@macavity.uchicago.edu>
List: port-mac68k
Date: 06/05/1999 14:52:40
All,

I have a 3 button mouse on my Mac and so no longer need the
option-{left,right}-arrow mouse button emulation.  Is there anyway to
reclaim use of the option key as say an Alt key under X?  Can this be
currently controlled by the X server (the Xmac68k manpage mentions
a '-optionmouse' option for enabling mouse button emulation, but not
an option to disable)?

Taking a quick look through the kernel sources, it looks like the
emulation is actually done by the kernel, which implies that the X
server can't do this, unless there's some ioctl() that can toggle the
emulation off and on (if there is no such ioctl(), maybe it'd be
useful to add one... ;) ).  If mouse button emulation has to be turned
off in the kernel, is it sufficient to define AED_MSEMUL as 0x0 in
dev/aedvar.h and recompile (and play w/ xmodmap as necessary)?
dev/aedvar.h currently has:

  #define AED_MSEMUL      0x1             /* emulate mouse buttons */

John