Thread (3 messages) 3 messages, 1 author, 2008-11-04

[PATCH 0/2] input: add generic filter for input events

STALE6544d

From: Peter Hutterer <hidden>
Date: 2008-11-04 02:02:20

The mac_hid module provides a virtual device to emulate right and/or middle
mouse button clicks on certain key presses. This emulation however only hooks
into keyboard.c, but not into evdev.c.

Consumers that listen to all evdev devices (such as the X server) thus receive
both the emulated mouse button event and the original key event. They do not
know that these events are associated.

These patches provide input handlers with an additional "filter" callback.
This filter function is invoked before the event is passed to the handlers and
can opt to discard the event. The mac_hid module registers such a filter
function and re-routes the event as mouse click through the virtual device.

This is a first stab in the dark at the attempt to fix this issue. Comments
are much appreciated.

Cheers,
  Peter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help