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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux