From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: linux-input@vger.kernel.org
Cc: mjg@redhat.com
Subject: [PATCH 0/2] Input filters
Date: Thu, 10 Sep 2009 22:28:18 -0700 [thread overview]
Message-ID: <20090911052720.26911.67943.stgit@localhost.localdomain> (raw)
Hi,
The following 2 patches implement a limited version of input filters
which allow suppressing certain events from reaching regular input
handlers/user space.
The name inspired by the recent patch from Matthew, although
implementation and intended usage quite different - Matthew needs to
filter non-input (battery, wlan, AC adapter state) from the raw data
stream emitted by i8042 whereas input filters are supposed to filter
(and maybe replace) _input_ events, most likely without regard as to
which device emitted them.
The first (and quite possible only) user of the filter facility is
Mac mouse button emulation which user to be hacked into the keyboard
driver. The setup worked until keyboard was the sole source of key
events but now that X is switching to evdev (which is completely
ignorant of mac emulation) user space started getting the original
key presses along with the emulated buttons. Input filters solve the
issue while encapsulating everything in drivers/macintosh and
removing dependencies between mac_hid, keyboard and evdev.
--
Dmitry
next reply other threads:[~2009-09-11 5:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-11 5:28 Dmitry Torokhov [this message]
2009-09-11 5:28 ` [PATCH 1/2] Input: implement input filters Dmitry Torokhov
2009-09-11 5:28 ` [PATCH 2/2] Input: Mac button emulation - implement as input filter 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=20090911052720.26911.67943.stgit@localhost.localdomain \
--to=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=mjg@redhat.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 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.