diff options
author | Alex Chau <alexchau@google.com> | 2021-12-03 10:37:54 +0000 |
---|---|---|
committer | Alex Chau <alexchau@google.com> | 2021-12-03 10:37:54 +0000 |
commit | f7c99f3f2404f9605c2801caa20b236a595afa3d (patch) | |
tree | 724c88da6281ceb4225f8105bc14e56b0d591464 /include/input | |
parent | d6a7f22182d88888c6ac2824a888766203d33dfc (diff) | |
download | native-f7c99f3f2404f9605c2801caa20b236a595afa3d.tar.gz |
Revert "Reland "Remove x/y offset from MotionEntry""
Revert submission 16336498-revert-16306432-revert-16295572-ORWQJPYRMQ-IQBEBXXQNX
Reason for revert: b/208849306
Reverted Changes:
I5afb6f7fd:Reland "Remove x/y offset from MotionEntry"
I68b5619bf:Reland "Input injection: Assume transformed values...
Change-Id: Id944e4eb39b26e3ffd51998b315a06e87a2af3d5
Diffstat (limited to 'include/input')
-rw-r--r-- | include/input/Input.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/input/Input.h b/include/input/Input.h index 1c79c4a21c..1e06257591 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -377,6 +377,7 @@ struct PointerCoords { // window scale. The global scale will be applied to TOUCH/TOOL_MAJOR/MINOR // axes, however the window scaling will not. void scale(float globalScale, float windowXScale, float windowYScale); + void applyOffset(float xOffset, float yOffset); void transform(const ui::Transform& transform); @@ -566,7 +567,7 @@ public: inline float getYOffset() const { return mTransform.ty(); } - inline const ui::Transform& getTransform() const { return mTransform; } + inline ui::Transform getTransform() const { return mTransform; } inline float getXPrecision() const { return mXPrecision; } @@ -582,7 +583,7 @@ public: void setCursorPosition(float x, float y); - inline const ui::Transform& getRawTransform() const { return mRawTransform; } + ui::Transform getRawTransform() const { return mRawTransform; } static inline bool isValidCursorPosition(float x, float y) { return !isnan(x) && !isnan(y); } |