diff options
| author | 2021-11-24 15:36:43 +0000 | |
|---|---|---|
| committer | 2021-12-01 11:41:50 +0000 | |
| commit | d6a7f22182d88888c6ac2824a888766203d33dfc (patch) | |
| tree | 79dd97ef5d6d5dd9f472a1fb85106668f8034923 /libs/input/Input.cpp | |
| parent | 923373d52068c901437599b5cfbbe7878f1d1a78 (diff) | |
Reland "Remove x/y offset from MotionEntry"
2b80b386c4ed5a1b3240da32080280b0a1ec9cef
Change-Id: I5afb6f7fd25cd13e42a9b4368fa387bf574e5ec0
Diffstat (limited to 'libs/input/Input.cpp')
| -rw-r--r-- | libs/input/Input.cpp | 5 |
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(); |