Commit 2098a330 authored by Allen Ballway's avatar Allen Ballway Committed by Greg Kroah-Hartman
Browse files

HID: multitouch: Add quirks for flipped axes



[ Upstream commit a2f416bf ]

Certain touchscreen devices, such as the ELAN9034, are oriented
incorrectly and report touches on opposite points on the X and Y axes.
For example, a 100x200 screen touched at (10,20) would report (90, 180)
and vice versa.

This is fixed by adding device quirks to transform the touch points
into the correct spaces, from X -> MAX(X) - X, and Y -> MAX(Y) - Y.

Signed-off-by: default avatarAllen Ballway <ballway@chromium.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Stable-dep-of: 03a86105 ("HID: retain initial quirks set up when creating HID devices")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f6e9b772
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment