nanogui: Thread: How do we select events for the HW buttons/keys on the Helio and other PDAs?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: How do we select events for the HW buttons/keys on the Helio and other PDAs?
From: Robert Hartley ####@####.####
Date: 30 Nov 2000 19:38:19 -0000
Message-Id: <3A26AD2B.8DBC9615@ics.com>

Hi,

How do we select events for the HW buttons/keys on the Helio and other
PDAs?

-rh

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=  Robert Hartley                 Mail:         201 Broadway        =
=  Central Region Systems Engineer              Cambridge, MA 02139 =
=  Integrated Computer            Email:        ####@####.####    =
=  Solutions, Inc.                Web Site:     www.ics.com         =
=  Tech Support: ####@####.####  Phone:        800-800-4271        =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Visit the MotifZone (www.motifzone.org) for info on Motif!



Subject: Re: How do we select events for the HW buttons/keys on the Helio and other PDAs?
From: Jordan Crouse ####@####.####
Date: 30 Nov 2000 20:48:15 -0000
Message-Id: <3A26BDA3.9D026EA1@censoft.com>

You will need to write a microwindows keyboard driver to grab the
keystrokes from your linux driver (see drivers/kbd_tty.c for an great
example).  However, the whole keyboard architecture has been completely
rewritten lately by Greg, so you should probably hang on a for a while
until we release the next version of Microwindows, otherwise you will
end up rewriting your whole driver again.

Happy hacking,
Jordan

Robert Hartley wrote:
> 
> Hi,
> 
> How do we select events for the HW buttons/keys on the Helio and other
> PDAs?
> 
> -rh
> 
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> =  Robert Hartley                 Mail:         201 Broadway        =
> =  Central Region Systems Engineer              Cambridge, MA 02139 =
> =  Integrated Computer            Email:        ####@####.####    =
> =  Solutions, Inc.                Web Site:     www.ics.com         =
> =  Tech Support: ####@####.####  Phone:        800-800-4271        =
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> Visit the MotifZone (www.motifzone.org) for info on Motif!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
Subject: Re: How do we select events for the HW buttons/keys on the Helio and other PDAs?
From: "Greg Haerr" ####@####.####
Date: 30 Nov 2000 23:18:57 -0000
Message-Id: <02ba01c05b25$0cda6210$6817dbd0@censoft.com>

: How do we select events for the HW buttons/keys on the Helio and other
: PDAs?

In version 0.89pre7, which I'm about ready to release in the next
few days, there's a whole set of MWKEY_ values that the
keyboard driver, specially written for each PDA, can return.
Then, you just use the normal keyboard select mechanism,
using GR_EVENT_TYPE_KEY_UP|DOWN, and 
you'll get a keystroke every time a button is pressed or
released.

Century Software is writing an iPAQ and YOPY keyboard driver,
with more coming shortly.  You might want to hack a Helio
driver, basically, it opens up the /dev/xxx device and when input
is ready, the main Microwindows select() loop calls the driver, which
reads the hardware-dependent bytes and converts them to MWKEY_*
values that are then sent up the system...

Regards,

Greg


[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.