summaryrefslogtreecommitdiff
path: root/libs/input/Input.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-12-01 23:49:08 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-12-01 23:49:08 +0000
commit5bc9e109ad0b107d7f6c92f4b8aa9a560f49b686 (patch)
treebae3debbc9ada4d1a3412bae2c3ae0bb9a6b4458 /libs/input/Input.cpp
parent9aa979b5799213810b71f939cc25b460fcc25959 (diff)
parentd6a7f22182d88888c6ac2824a888766203d33dfc (diff)
Merge changes from topic "revert-16306432-revert-16295572-ORWQJPYRMQ-IQBEBXXQNX"
* changes: Reland "Remove x/y offset from MotionEntry" Reland "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 44487c3a85..349880c432 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();