summaryrefslogtreecommitdiff
path: root/libs/input/Input.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-12-29 08:26:14 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-12-29 08:26:14 +0000
commitbd9bc48ad88288418d58fd543b154c22262e57d2 (patch)
tree448e12eb3697fedeae4021eebbd8aaaf46e31e8c /libs/input/Input.cpp
parent23fc122d74d6baf02b9abc98426733be65cb7a76 (diff)
parent5beda769594b8a86439ae5969a8448f7b4c5e522 (diff)
Merge changes from topic "revert-16371733-revert-16336498-revert-16306432-revert-16295572-ORWQJPYRMQ-IQBEBXXQNX-CARGQZNFNA-ZVFVBFSHNR"
* changes: Reland^2 "Remove x/y offset from MotionEntry" Reland^2 "Input injection: Assume transformed values are i..."
Diffstat (limited to 'libs/input/Input.cpp')
-rw-r--r--libs/input/Input.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/input/Input.cpp b/libs/input/Input.cpp
index f0b97a7ba8..84dba84e2b 100644
--- a/libs/input/Input.cpp
+++ b/libs/input/Input.cpp
@@ -344,11 +344,6 @@ void PointerCoords::scale(float globalScaleFactor, float windowXScale, float win
scaleAxisValue(*this, AMOTION_EVENT_AXIS_RELATIVE_Y, windowYScale);
}
-void PointerCoords::applyOffset(float xOffset, float yOffset) {
- setAxisValue(AMOTION_EVENT_AXIS_X, getX() + xOffset);
- setAxisValue(AMOTION_EVENT_AXIS_Y, getY() + yOffset);
-}
-
#ifdef __linux__
status_t PointerCoords::readFromParcel(Parcel* parcel) {
bits = parcel->readInt64();