Convert MotionEvent#getSurfaceRotation to ui::Rotation
Because it might have an invalid rotation it needs to return
std::optional<ui::Rotation>, but at least we're using the types
effectively here.
Test: compiles
Change-Id: I27076edcc6ce33594552863caa8ee643027a81e7
diff --git a/include/input/Input.h b/include/input/Input.h
index 07a566a..015efdd 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -577,7 +577,7 @@
inline const ui::Transform& getTransform() const { return mTransform; }
- int32_t getSurfaceRotation() const;
+ std::optional<ui::Rotation> getSurfaceRotation() const;
inline float getXPrecision() const { return mXPrecision; }