nanogui: about nanowm
Subject:
Re: about nanowm
From:
"Greg Haerr" ####@####.####
Date:
22 Feb 2001 17:11:50 -0000
Message-Id: <030601c09cf2$fefebd20$15320cd0@gregh>
: Sorry,maybe i cann't call it "hotbutton control"
: I means that an application which can receive a
message from hardware button(like PALM Vx ) and send
a event to the nanowm,in this way the hardware button
can control the windows. (for example,You can control
the scrollbar of a window only with a hardware button
I'll take a look at the code. In the mean time,
the best way to interface buttons to the hardware
is to add them into the low-level Microwindows
keyboard driver, and have the button presses come
up as MWKEY_* values.
There is room for "virtual" MWKEY_ values, which can
then be passed to the widget set, and used for controlling
scrollbars, etc. Normally, you won't have to create
another virtual value, since I have added quite
a few already. For controlling the scrollbars, for
instance, I recommend using MWKEY_UP/DOWN. Add these
values to the widget, and you'll be in business.
Take a look at kbd_ipaq.c, this is exactly what we've
done to interface the iPAQ buttons to Microwindows,
they look like keystrokes.
Regards,
Greg