diff options
| author | 2021-12-10 09:30:08 +0000 | |
|---|---|---|
| committer | 2021-12-24 13:20:34 +0000 | |
| commit | 5beda769594b8a86439ae5969a8448f7b4c5e522 (patch) | |
| tree | 79dd97ef5d6d5dd9f472a1fb85106668f8034923 /libs/input/Input.cpp | |
| parent | daa2f14871c97919cf6922e9313a300bde4fb9b6 (diff) | |
Reland^2 "Remove x/y offset from MotionEntry"
f7c99f3f2404f9605c2801caa20b236a595afa3d
Bug: 206842332
Change-Id: Id42790e6c1d562c61efb6673407a2861927df40b
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(); |