summaryrefslogtreecommitdiff
path: root/include/input
diff options
context:
space:
mode:
authorPrabir Pradhan <prabirmsp@google.com>2021-11-25 10:53:27 -0800
committerPrabir Pradhan <prabirmsp@google.com>2021-12-01 05:58:15 -0800
commit092f3a9b75b1fd465373730ca8d6038c89ed9220 (patch)
tree5adffe078021cfaafbc52eece0c01e181b41a0ab /include/input
parent48579875dd92c945b6fa36a4e32c1a538fe00732 (diff)
downloadnative-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.h2
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; }