diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-12-03 13:19:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-12-03 13:19:19 +0000 |
commit | 0abd019f7574c6e47628f8c4507094f843682300 (patch) | |
tree | 7365b09afac543b1ffdaa8346143e04c71464ca7 /include/input | |
parent | f244445c5baa1fd419072e9ff8390b5ad012bb35 (diff) | |
parent | 663fc83b598d60621262eb61403b50ae868831fd (diff) | |
download | native-0abd019f7574c6e47628f8c4507094f843682300.tar.gz |
Merge changes from topic "revert-16336498-revert-16306432-revert-16295572-ORWQJPYRMQ-IQBEBXXQNX-CARGQZNFNA"
* changes:
Revert "Reland "Input injection: Assume transformed values are i...""
Revert "Reland "Remove x/y offset from MotionEntry""
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 70c7909986..29503af65f 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -382,6 +382,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); @@ -571,7 +572,7 @@ public: inline float getYOffset() const { return mTransform.ty(); } - inline const ui::Transform& getTransform() const { return mTransform; } + inline ui::Transform getTransform() const { return mTransform; } int getSurfaceRotation() const; @@ -589,7 +590,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); } |