Re: [AD] linux keyboard mapping? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> I can't look it up right now, but this is how I remember it. If the user
presses
> the button with a "S" drawn on it, the X server will send a keycode to
the application,
> and from that keycode the application can look up the corresponding
keysym (XK_s
> or something like that). But, AFAIK, the app can't find out whether or
not
> that keycode was caused by the button two positions to the right of the
Caps
> Lock button.
Why do we need to know if the key that was pressed happens to be two to the
right of capslock? FYI, on a Sun keyboard (being pedantic, I know) that
key happens to be an extra modifier key (with a club [as in cards] drawn
on it). The S key is two to the right of the control key.
Perhaps I'm not seeing clearly what you're saying, but it looks to me like
we'd be making dangerous assumptions about keyboard lay-out.