diff options
author | Prabir Pradhan <prabirmsp@google.com> | 2021-11-25 10:53:27 -0800 |
---|---|---|
committer | Prabir Pradhan <prabirmsp@google.com> | 2021-12-01 05:58:15 -0800 |
commit | 092f3a9b75b1fd465373730ca8d6038c89ed9220 (patch) | |
tree | 5adffe078021cfaafbc52eece0c01e181b41a0ab /include/input | |
parent | 48579875dd92c945b6fa36a4e32c1a538fe00732 (diff) | |
download | native-092f3a9b75b1fd465373730ca8d6038c89ed9220.tar.gz |
Add getSurfaceRotation API to MotionEvent
Add an API to get the current rotation value of the transform of the
MotionEvent.
Bug: 207771136
Test: atest MotionEventTest
Change-Id: I05fb4455d0dcfc0de8c8564473ee8d43ac86c0bd
Diffstat (limited to 'include/input')
-rw-r--r-- | include/input/Input.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/input/Input.h b/include/input/Input.h index 5242dcb476..29503af65f 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -574,6 +574,8 @@ public: inline ui::Transform getTransform() const { return mTransform; } + int getSurfaceRotation() const; + inline float getXPrecision() const { return mXPrecision; } inline float getYPrecision() const { return mYPrecision; } |