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


Previous by date: 30 Nov 2000 23:18:57 -0000 Re: How do we select events for the HW buttons/keys on the Helio and other PDAs?, Jordan Crouse
Next by date: 30 Nov 2000 23:18:57 -0000 Re: Cannot Compile 0.89pre5, Greg Haerr
Previous in thread: 30 Nov 2000 23:18:57 -0000 Re: How do we select events for the HW buttons/keys on the Helio and other PDAs?, Jordan Crouse
Next in thread:

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



Previous by date: 30 Nov 2000 23:18:57 -0000 Re: How do we select events for the HW buttons/keys on the Helio and other PDAs?, Jordan Crouse
Next by date: 30 Nov 2000 23:18:57 -0000 Re: Cannot Compile 0.89pre5, Greg Haerr
Previous in thread: 30 Nov 2000 23:18:57 -0000 Re: How do we select events for the HW buttons/keys on the Helio and other PDAs?, Jordan Crouse
Next in thread:


Powered by ezmlm-browse 0.20.