mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Handle axis swap, calibration, and inversion for touch events (#59340)
X.Org Bug 59340 <http://bugs.freedesktop.org/show_bug.cgi?id=59340> Reported-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -744,6 +744,9 @@ EvdevProcessTouch(InputInfoPtr pInfo)
|
||||
type = XI_TouchUpdate;
|
||||
|
||||
|
||||
EvdevSwapAbsValuators(pEvdev, pEvdev->mt_mask);
|
||||
EvdevApplyCalibration(pEvdev, pEvdev->mt_mask);
|
||||
|
||||
EvdevQueueTouchEvent(pInfo, pEvdev->cur_slot, pEvdev->mt_mask, type);
|
||||
|
||||
pEvdev->slot_state = SLOTSTATE_EMPTY;
|
||||
|
||||
Reference in New Issue
Block a user