diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-01-30 03:53:29 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-01-30 04:47:49 -0500 |
commit | 99b089c3c38a83ebaeb1cc4584ddcde841626467 (patch) | |
tree | 484a9ac4871a055873b6427d2f7c3c37554fd0ce /drivers/macintosh/Kconfig | |
parent | ef7995f4e46b1677f3eaaf547316e1a910b38dcb (diff) |
Input: Mac button emulation - implement as an input filter
Current implementation of Mac mouse button emulation plugs into legacy
keyboard driver, converts certain keys into button events on a separate
device, and suppresses the real events from reaching tty. This worked
well enough until user space started using evdev which was completely
unaware of this arrangement and kept sending original key presses to
its users. Change the implementation to use newly added input filter
framework so that original key presses are not transmitted to any
handlers.
As a bonus remove SYSCTL dependencies from the code and use Kconfig
instead; also do not create the emulated mouse device until user
activates emulation.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/macintosh/Kconfig')
-rw-r--r-- | drivers/macintosh/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/macintosh/Kconfig b/drivers/macintosh/Kconfig index 3d906833948d..aa3c27e5255d 100644 --- a/drivers/macintosh/Kconfig +++ b/drivers/macintosh/Kconfig | |||
@@ -172,6 +172,7 @@ config INPUT_ADBHID | |||
172 | 172 | ||
173 | config MAC_EMUMOUSEBTN | 173 | config MAC_EMUMOUSEBTN |
174 | bool "Support for mouse button 2+3 emulation" | 174 | bool "Support for mouse button 2+3 emulation" |
175 | depends on SYSCTL | ||
175 | select INPUT | 176 | select INPUT |
176 | help | 177 | help |
177 | This provides generic support for emulating the 2nd and 3rd mouse | 178 | This provides generic support for emulating the 2nd and 3rd mouse |