nanogui: How do we select events for the HW buttons/keys on the Helio and other PDAs?
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