summaryrefslogtreecommitdiff
path: root/include/input/Input.h
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2022-12-01 23:46:39 +0000
committer Michael Wright <michaelwr@google.com> 2022-12-02 13:54:39 +0000
commita9cf419caeebb019a6ca39fd43aab69f0956ae85 (patch)
treee7a9fad8e46b1ea27641344faaebd7ef2c96056d /include/input/Input.h
parent5956e69ecea469b9d51cd42a0d03852ca2236411 (diff)
Convert orientation values in input to ui::Rotation.
ui::Rotation both provides better typesafety as well as some convenience functions (e.g. operator+, operator-). Test: atest TouchVideoFrame_test.cpp InputReader_test.cpp Change-Id: Ib423457c742ed3d41f2e3fc269ddf86809cbf247
Diffstat (limited to 'include/input/Input.h')
-rw-r--r--include/input/Input.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/input/Input.h b/include/input/Input.h
index d298d817f5..07a566a63c 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -577,7 +577,7 @@ public:
inline const ui::Transform& getTransform() const { return mTransform; }
- int getSurfaceRotation() const;
+ int32_t getSurfaceRotation() const;
inline float getXPrecision() const { return mXPrecision; }