summaryrefslogtreecommitdiff
path: root/libs/input/Input.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-11-18 07:54:09 -0800
committer Prabir Pradhan <prabirmsp@google.com> 2021-11-19 04:10:42 -0800
commit5e6b390919a9786a50f9d5cbd539e9dc53ad78c2 (patch)
tree79dd97ef5d6d5dd9f472a1fb85106668f8034923 /libs/input/Input.cpp
parentf155b3ed59455b0fd301a4e8412164576e540995 (diff)
Remove x/y offset from MotionEntry
Window or display offsets are now captured in the various transforms, so we can remove the ability to specify the offset by itself. Bug: 188939842 Test: presubmit Test: atest inputflinger_tests Change-Id: Ifd359ebb03850bb30efb358e84f0a7e77260a8b2
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 8974b22c86..69ea7dfcb5 100644
--- a/libs/input/Input.cpp
+++ b/libs/input/Input.cpp
@@ -343,11 +343,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();