Subject: Re: Wskeyboard mappings
To: Reinoud Zandijk <imago@kabel065011.kabel.utwente.nl>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: tech-kern
Date: 03/15/2001 15:23:17
> Hi Juergen,
> 
> I've patched my keymap again but now it really gives strange results :((
> and i cant get my finger on it ... so in my deperate attempt to fix it
> i'll send you the file ... maybe i am just doing something silly :)
> 
> As you can see in the file, the scancode 14 gets mapped to :
> /*  pos   command   normal      shifted      altgr    shift-altgr */
>     KC(14),         KS_grave,   KS_notsign,  KS_bar,

This is in hex:

      KC(14),         0x60,       0xac,        0x7c

> But pressing the scancode 14 key (left to 1) it gives "`" but shift gives
> 0xac, altgr gives 0xe0, shift altgr gives 0xac, ctrl-alt gives 0x80 ...
> i'm lost ...

Your alt-gr IS NOT alt-gr but alt!! 0xe0 == 0x60|0x80, 0xac == 0xac|0x80.
Try KC(273), KS_Multi_key, ...

>     KC(97),         KS_backslash, KS_brokenbar,
> 
> gives backslash ok but with shift gives 0xa6 ... is that brokenbar ?

Yes, brokenbar is 0xa6

> alt `,' gives the 0xac too so i guess the `KS_notsign' works on keycode
> 14 but for some reason my font doesnt know it :((
> 
> but is one of `KS_bar' or `KS_brokenbar' not | ? i.e. 0x7c ?

Yes, bar is 0x7c is |

> puzzled....
> 
> Cheers,
> Reinoud

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)