diff options
author | John Chen <johnchen902@gmail.com> | 2021-03-30 19:33:17 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-04-07 13:15:05 +0200 |
commit | 3dcc5f7b45e037b0c6e84e4f757d16c55535db28 (patch) | |
tree | 13336f092b860ca70915ef95e3801091dd279679 /include/linux/compiler_attributes.h | |
parent | 2b0c086cd6f40648df73c30ea785e5c7777948da (diff) |
HID: magicmouse: fix 3 button emulation of Mouse 2
It is observed that, with 3 button emulation, when middle button is
clicked, either the left button or right button is clicked as well. It
is caused by hidinput "correctly" acting on the event, oblivious to the
3 button emulation.
As raw_event has taken care of everything, no further processing is
needed. However, the only way to stop at raw_event is to return an error
(negative) value. Therefore, the processing is stopped at event instead.
[jkosina@suse.cz: fix comment style]
Signed-off-by: John Chen <johnchen902@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions