nanogui: X11 KEY_UP event


Previous by date: 9 May 2001 03:07:00 -0000 Re: Timer Event Patch for Nano-X, Gary James
Next by date: 9 May 2001 03:07:00 -0000 Re: Is there chinese input mechod for microwindow?, jacky
Previous in thread: 9 May 2001 03:07:00 -0000 Re: X11 KEY_UP event, Jordan Crouse
Next in thread: 9 May 2001 03:07:00 -0000 Re: X11 KEY_UP event, Timo Ketola

Subject: Re: X11 KEY_UP event
From: "Greg Haerr" ####@####.####
Date: 9 May 2001 03:07:00 -0000
Message-Id: <03de01c0d827$b6933a00$3aba46a6@xmission.com>

: I'm a little lost with the X11 driver. I need to know when a key is
: released and watch for KEY_UP events. Basically it works fine but the
: problem is the auto repeat function. For every auto repeat cycle I get
: KEY_DOWN  * AND KEY_UP *  event (DOWN UP DOWN UP DOWN UP ... DOWN UP; I
: was expecting a sequence of DOWN DOWN DOWN ... DOWN UP). These extra
: KEY_UP events makes it impossible to distinguish between multiple key
: presses and one long press.
: 
: Is this a property of X11 and is there any way to modify it's behaviour?

Timo,
    Yes, this is an X11 issue.  You might want to look at how the Linux
console scancode driver solves this problem (src/drivers/kbd_ttyscan.c)
There's an #if 0 on line 345 that basically drops events that don't change
state.  This code needs to be basically inserted into the kbd_x11.c
x11 kbd driver in the X11_Read function, in near the same area.

Regards,

Greg


Previous by date: 9 May 2001 03:07:00 -0000 Re: Timer Event Patch for Nano-X, Gary James
Next by date: 9 May 2001 03:07:00 -0000 Re: Is there chinese input mechod for microwindow?, jacky
Previous in thread: 9 May 2001 03:07:00 -0000 Re: X11 KEY_UP event, Jordan Crouse
Next in thread: 9 May 2001 03:07:00 -0000 Re: X11 KEY_UP event, Timo Ketola


Powered by ezmlm-browse 0.20.