From: Hector Martin <hector@marcansoft.com>
To: linux-input@vger.kernel.org
Subject: Hold and Volume Notify keys
Date: Tue, 07 Jul 2009 17:06:45 +0200 [thread overview]
Message-ID: <4A536485.2030503@marcansoft.com> (raw)
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
reply other threads:[~2009-07-07 15:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A536485.2030503@marcansoft.com \
--to=hector@marcansoft.com \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.