nanogui: Really raw keyboard?


Previous by date: 20 Feb 2001 15:31:17 -0000 Re: Really raw keyboard?, Jordan Crouse
Next by date: 20 Feb 2001 15:31:17 -0000 Re: Query: How to create a window with title bar, close button, Bipin T S
Previous in thread: 20 Feb 2001 15:31:17 -0000 Re: Really raw keyboard?, Jordan Crouse
Next in thread: 20 Feb 2001 15:31:17 -0000 Re: Really raw keyboard?, Jordan Crouse

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


Previous by date: 20 Feb 2001 15:31:17 -0000 Re: Really raw keyboard?, Jordan Crouse
Next by date: 20 Feb 2001 15:31:17 -0000 Re: Query: How to create a window with title bar, close button, Bipin T S
Previous in thread: 20 Feb 2001 15:31:17 -0000 Re: Really raw keyboard?, Jordan Crouse
Next in thread: 20 Feb 2001 15:31:17 -0000 Re: Really raw keyboard?, Jordan Crouse


Powered by ezmlm-browse 0.20.