nanogui: Really raw keyboard?
Subject:
Re: Really raw keyboard?
From:
Jordan Crouse ####@####.####
Date:
20 Feb 2001 16:01:09 -0000
Message-Id: <3A9295D8.89AE5356@censoft.com>
So you are saying that repetition is reported by the microwindows driver
as a number of KEY_UPs followed by an immediate KEY_DOWN? Further
examination of the Microwindows driver shows that it simply passes what
the kernel driver reports. Thus I would have to assume that this
functionality lies with the kernel. I don't know if the user can
control the repetiton through the TTY ioctl, but somehwere I thought
that I heard that was possible. Anyone out there with more TTY
experience care to comment?
omasz Motylewski wrote:
>
> 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