From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: "Rick L. Vinyard, Jr." <rvinyard@cs.nmsu.edu>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Trilok Soni <soni.trilok@gmail.com>,
Linux USB <linux-usb@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
linux-input@vger.kernel.org
Subject: Re: Using EV_MSC or extending KEY_*
Date: Tue, 15 Sep 2009 23:19:22 -0300 [thread overview]
Message-ID: <20090916021922.GA1627@khazad-dum.debian.net> (raw)
In-Reply-To: <0debc76f26fe85e28adf642396233928.squirrel@intranet.cs.nmsu.edu>
On Tue, 15 Sep 2009, Rick L. Vinyard, Jr. wrote:
> As I understand it the EV_MSC/MSC_SCAN is used to trigger a prompting of
> the user to map a key, which would be useful for the G1-G22 keys and
> perhaps 5 of the 10 special keys. But, that's not the behavior I want for
> the M1, M2, M3, MR and backlight keys.
Why?
> Somehow they need to be distinct from any existing KEY_* codes or not have
> a code at all... i.e. only emitting the raw misc events.
Use KEY_RESERVED for them and in your driver, special case it to not output
EV_KEY events for KEY_RESERVED, but still output the EV_MSC/MSC_SCAN.
This allows userspace to reprogram them to normal keys (or even to
KEY_UNKNOWN) if it wants.
> Perhaps the BTN_MISC codes are better suited for these keys?
That could work too, but are these generic buttons?
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
next prev parent reply other threads:[~2009-09-16 2:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 16:19 Rick L. Vinyard, Jr.
2009-09-15 17:11 ` Trilok Soni
2009-09-15 18:34 ` Dmitry Torokhov
2009-09-15 19:05 ` Rick L. Vinyard, Jr.
2009-09-16 2:19 ` Henrique de Moraes Holschuh [this message]
2009-09-16 21:27 ` Rick L. Vinyard, Jr.
2009-09-16 3:46 ` Dmitry Torokhov
2009-09-16 21:27 ` Rick L. Vinyard, Jr.
2009-09-17 17:57 ` Henrique de Moraes Holschuh
2009-09-18 6:46 ` Dmitry Torokhov
2009-09-18 13:56 ` Henrique de Moraes Holschuh
2009-09-18 16:00 ` Rick L. Vinyard, Jr.
2009-09-28 17:03 ` Dmitry Torokhov
2009-09-18 15:40 ` Rick L. Vinyard, Jr.
2009-09-28 17:03 ` Dmitry Torokhov
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=20090916021922.GA1627@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=rvinyard@cs.nmsu.edu \
--cc=soni.trilok@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®