-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
evdevtouch: Add fallback definition of ABS_MT_PRESSURE; fix alignment
Fixes: QTBUG-78298 Change-Id: Ib6acb1fdca551a84aba5dec2f28cf784a212692c Reviewed-by: Laszlo Agocs <[email protected]>
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2016 The Qt Company Ltd. | ||
** Copyright (C) 2019 The Qt Company Ltd. | ||
** Copyright (C) 2016 Jolla Ltd, author: <[email protected]> | ||
** Contact: https://www.qt.io/licensing/ | ||
** | ||
|
@@ -74,7 +74,7 @@ Q_LOGGING_CATEGORY(qLcEvdevTouch, "qt.qpa.input") | |
#define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */ | ||
#endif | ||
#ifndef ABS_MT_POSITION_X | ||
#define ABS_MT_POSITION_X 0x35 /* Center X ellipse position */ | ||
#define ABS_MT_POSITION_X 0x35 /* Center X ellipse position */ | ||
#endif | ||
#ifndef ABS_MT_POSITION_Y | ||
#define ABS_MT_POSITION_Y 0x36 /* Center Y ellipse position */ | ||
|
@@ -88,6 +88,9 @@ Q_LOGGING_CATEGORY(qLcEvdevTouch, "qt.qpa.input") | |
#ifndef ABS_MT_TRACKING_ID | ||
#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */ | ||
#endif | ||
#ifndef ABS_MT_PRESSURE | ||
#define ABS_MT_PRESSURE 0x3a | ||
#endif | ||
#ifndef SYN_MT_REPORT | ||
#define SYN_MT_REPORT 2 | ||
#endif | ||
|