Re: [AD] linux keyboard mapping? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2002-10-16, Eric <ebotcazou@xxxxxxxxxx> wrote:
> > When writing the events API prototype, I got more details on the problem
> > (as well as learning X, finally). The problem is that X only tells us
> > "Keysyms" which is something between a physical key and a character
>
> Huh... the last time I tried, X returned raw keycodes too, which are of
> course server-dependent. The XKeyEvent structure contains the following
> member according to Volume One of the O'Reilly guide:
>
> typedef struct {
> ...
> unsigned int keycode; /* server-dependent code for the key */
> ...
> } XKeyEvent;
Sorry, I forgot the terminology. That's what I meant when I wrote
"keysym" above. You still don't know which physical key caused the
keycode.
--
王浩禎