# To subscribers of the xforms list from Steve Lamont <spl@ncmir.ucsd.edu> :
> In case of a keypress event, the field xev->KeyPress.keycode
> DOES NOT match the X11/keysymdef.h definitions....
>
> Does any one know in witch include file I can find the
> #define of the keycodes given in XEvents by my IRIX system ?
What I do is to convert the XKeyEvent into a string with:
static int key_press_event_handler( FL_OBJECT *obj, Window window,
int window_width, int
window_height,
XEvent *xevent, void *user_data )
{
XKeyEvent *xkey_press = ( XKeyEvent *) xevent;
char buffer[80];
KeySym keysym;
XComposeStatus compose_status;
int l;
XvoxtraceP xvoxtrace_ptr = XVOXTRACE( obj );
l = XLookupString( xkey_press, buffer, sizeof( buffer ),
&keysym, &compose_status );
if ( l == 1 ) {
switch ( buffer[0] ) {
case CTRL('A'): {
[...]
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Tue Jul 25 2000 - 10:45:10 EDT