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

USB 10-key pad



Greetings,

  I have a Kensington Pocket Keypad, Model# 33006.  It connects via USB and
is detected automatically as wskbd1 at ukbd0 mux 1.  It works out of the box
for all standard functions, but I desire to remap the keys.  I understand
how to use wsconsctl to remap keys on the default keyboard, but there seems
to be no way to specify wskbd1 as the target for remapping.  Checking CVS
for wsconsctl.c shows that there used to be an -f option to specify a
different device file (such as /dev/wskbd1 in my case), but this has been
removed for a couple years now.  Undaunted, I recompiled a separate copy of
wsconsctl, using /dev/wskbd1 as the default keyboard device.  Now I can
change the keymap on my regular keyboard using the standard wsconsctl and
change the keymap on my usb keypad using the hacked wsconsctl.  However,
even though both programs seem to work, the keys on the keypad remain
unaffected.  The wskbd0 keymap is changed, as per normal.  Using my hacked
wsconsctl doesn't affect variables in the standard wsconsctl, and vice
versa, so I assume (perhaps wrongly) that each is working properly and
independantly.  I would appreciate any pointers if anyone has had any
experience with remapping keys on non-primary keyboards.

Thanks,
Hysun Chung