* Hold and Volume Notify keys
@ 2009-07-07 15:06 Hector Martin
0 siblings, 0 replies; only message in thread
From: Hector Martin @ 2009-07-07 15:06 UTC (permalink / raw)
To: linux-input
Newer Acer laptops have a touch-sensitive media panel thing which
produces keyboard events. There's a Hold key so it looks like I need a
KEY_HOLD. However, the key on this laptop acts as a hardware toggle
switch and produces two different keyboard scancodes: one when the hold
is engaged, and one when it is disengaged. It is useful for userspace to
distinguish between the two to properly interact with the volume
controls in particular. I'm not sure if adding a KEY_HOLDON and a
KEY_HOLDOFF is the right thing to do, though.
The volume slider on the media panel normally produces the usual
volume-up/down , but when it is configured in non-legacy mode (where
software can interact with it and control it) it instead produces a
single "volume event notification" key when anything changes. Looks like
I also need a key event for that (KEY_VOLUMENOTIFY? I'm open to any
suggestions).
Also, what numbers should I pick for the new KEY_ events? Is there an
established convention or do I just pick some unused region within the
KEY_* area?
--
Hector Martin (hector@marcansoft.com)
Public Key: http://www.marcansoft.com/marcan.asc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-07 15:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-07 15:06 Hold and Volume Notify keys Hector Martin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.