All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Input filters
@ 2009-09-11  5:28 Dmitry Torokhov
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2009-09-11  5:28 UTC (permalink / raw)
  To: linux-input; +Cc: mjg

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-11  5:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-11  5:28 [PATCH 0/2] Input filters Dmitry Torokhov
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

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.