okay, this is making more sense.  thanks dave.

 > The XFree86 keyboard code tries to pass through unrecognised
 > scancodes (see xf86PostKbdEvent() around line 402 of xf86Events.c):
 > 
 >   if (xf86Info.scanPrefix == KEY_Prefix0) {
 >     switch (scanCode) {
 > 
 >       ...
 > 
 >     default:
 >       xf86MsgVerb(X_INFO, 4, "Unreported Prefix0 scancode: 0x%02x\n",
 >                   scanCode);
 >       /*
 >        * "Internet" keyboards are generating lots of new codes.  Let them
 >        * pass.  There is little consistency between them, so don't bother
 >        * with symbolic names at this level.
 >        */
 >       scanCode += 0x78;
 >     }
 > 
 > 
 > and this seems to work for most keyboards with extra keys.  By
 > "pass through", I mean generate a keycode for them.  Mapping that
 > keycode to a keysym is done through xkb by default, with the mappings
 > for different keyboards described in xkbcomp/symbols/inet.  I take it
 > from your comments that no keycode is being generated in your case?

right -- i get no keyboard events from those keys.  but i've been
doing most of my testing with xkbdisable set, thinking that that was
the better way to get raw keys.  and i've only just realized that
the so called "internet" keys (ugh -- they're just keys) are really
direct mappings of the 0xe0-prefixed scancodes.  so i think i may
be en route to success.

in addition, doing some research on the logitech itouch keyboard has
led me to the conclusion that my keyboard generates the same scancodes
that it does, though with different keysyms.  so i can probably make
use the itouch xkb keyboard map pretty much directly.  once i figure
out how to configure _that_.  :-)

when i get home i'll turn off XKbdDisable, and work on getting an itouch
config to work.  hopefully i'll then be able to report success.

(thanks too for your other comments on the history and possible future
of xkb.)

paul
p.s. is there a public web-browsable copy of XFree86 source anywhere?  i've
been looking at the code at:  
    ftp://ftp.x.org/pub/R6.4/xc/programs/Xserver/hw/xfree86/
which is clearly out of date.  it doesn't have the above-quoted snippet,
for instance, though i can see how it would fit in.

=---------------------
 paul fox, [EMAIL PROTECTED] (arlington, ma, where it's 35.8 degrees)
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to