nanogui: Really raw keyboard?
Subject:
Re: Really raw keyboard?
From:
Tomasz Motylewski ####@####.####
Date:
20 Feb 2001 15:31:17 -0000
Message-Id: <Pine.LNX.3.96.1010220162138.6906D-100000@linserv.intern.bfad.de>
On Tue, 20 Feb 2001, Jordan Crouse wrote:
> So generally, what you are saying is that you want to detect when
> certain buttons are pressed and released, correct? If you examine it
> closely, thats exactly how Microwindows works. The server can handle
> key down and key up events (repetition is handled by multiple events as
> read from the keyboard driver).
OK, I know. But the problem is that I do not want this repetition! At the
moment I am handling it in the following way: if KEY_UP is immediately
followed by KEY_DOWN then I ignore it. It requires using
GrGetNextEventTimout and resetting the status of all keys if timeout is
received. I was just wondering it there is a cleaner solutiuon (X11 and
Linux console).
Thank you for so immediate answer :-)
--
Tomek