summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-09-09 19:53:06 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2024-09-17 18:08:34 +0000
commiteb0c5075aaf373d0c008402ff61d48d8cb1e4efc (patch)
tree491dc392e7e8fec8bb417dab0f5d1645c3ba6ca2 /libs/input/PointerController.cpp
parentd67b1f8337794d3aacfd12ecd5934f7a35731ef2 (diff)
Use integer coordinates as the cursor starting point on a display
Ensure that the mouse cursor starts off with integer coordinates. Also, remove the unused getBounds method. Bug: 332973324 Test: atest PointerIconTest Test: Presubmit Flag: EXEMPT refactor Change-Id: Ieb26e443d047b016980001ec51002d3d40d00e91
Diffstat (limited to 'libs/input/PointerController.cpp')
-rw-r--r--libs/input/PointerController.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/input/PointerController.cpp b/libs/input/PointerController.cpp
index 5ae967bc369a..78d7d3a7051b 100644
--- a/libs/input/PointerController.cpp
+++ b/libs/input/PointerController.cpp
@@ -138,10 +138,6 @@ std::mutex& PointerController::getLock() const {
return mDisplayInfoListener->mLock;
}
-std::optional<FloatRect> PointerController::getBounds() const {
- return mCursorController.getBounds();
-}
-
void PointerController::move(float deltaX, float deltaY) {
const ui::LogicalDisplayId displayId = mCursorController.getDisplayId();
vec2 transformed;