Input filters
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | Input: implement input filtersdrivers/ include/ | +40 | 0 replies | |
| 2/2 | Input: Mac button emulation - implement as input filterdrivers/ drivers/ drivers/ +1 more | +186 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Input filters
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.
Signature · 1 line
Dmitry