From: Jamie Lentin Date: Tue, 16 Dec 2014 21:26:46 +0000 (+0000) Subject: HID: lenovo: Use native middle-button mode for compact keyboards X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~137^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94eefa27132358434735060c6bbdf61c669bb0ab;p=pandora-kernel.git HID: lenovo: Use native middle-button mode for compact keyboards By default the middle button is in a compatibility mode, and generates standard wheel events when dragging with the middle trackpoint button. Unfortunately this is buggy: * The middle button comes up before starting wheel events, causing a middle click on whatever the mouse cursor was sitting on * The USB keyboard always generates the "native" horizontal wheel event, regardless of mode. Instead, enable the "native" mode the Windows driver uses, and add support for the custom events this generates. This fixes the USB keyboard wheel events, and the middle-click up event comes after the wheel events. Signed-off-by: Jamie Lentin Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed