Subject: Re: extended extended keyboard support?
To: port-mac68k Mailing List <port-mac68k@netbsd.org>
From: Colin Wood <cwood@ichips.intel.com>
List: port-mac68k
Date: 06/05/1999 14:25:13
John Valdes wrote:
> All,
> 
> Have either of these functions been implemented for extended
> keyboards? 
> 
> 1) LEDs (Caps Lock, etc).  I see there's some code for this in
>    dev/kbd.c, but it's currently disabled by a "#ifdef notyet/#endif"
>    block.  What's the current status of this?

i need to figure out exactly what it is about quickly changing their state
that causes the machine to hang ;-)  in all reality, i think that i need a
few delays in there b/c the ADB commands appear to be completely too
quickly (annoying, eh? :-)
 
> 2) Independent left and right modifier keys (eg, under X, separate
>    Shift_L and Shift_R, Control_L & Control_R, etc).  Currently, the
>    right side modifiers generate *_L events.  According to "Guide to
>    Macintosh Family Hardware":
> 
>     "If your application needs to be able to distinguish the
>      right-hand Option [, Shift] and Control keys from the
>      corresponding keys on the left side of the keyboard, you can
>      cause the keyboard to generate different transition codes for
>      those keys ... by changing the value of the Device Handler ID in
>      Keyboard register 3 from $0002 to $0003."
> 
>    Anyone know if this works for all (Apple & 3rd party) extended
>    keyboards?

well, i can only say that i believe it does work for the 3 extended
keyboards i have here, but i've never had a whole lot of use for it, so
this one has been rather low down on the priority list.
 
>    To be honest, I don't really have a use for this, but it would be
>    useful if someone wanted to, eg, remap the caps lock and control
>    keys on the left of the keyboard, but preserve the use of the right
>    side control key as a control key.

except the extended keyboards have a locking capslock...too bad you can't
switch that around.  oh well, at least the IBM keyboards i use at work
have the same broken layout, so i don't get too confused :-)

> I'd be willing to work on either of these... ;)

if you can get the code i have in there to set and clear the lights to
work reliably, please do.  i've been playing with the sound stuff again
recently, and i haven't had time to look at ADB recently.  maybe in the
next couple of weeks...

later.

colin