Re: [AD] linux keyboard mapping?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> 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;

--
Eric Botcazou



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/