summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.h
diff options
context:
space:
mode:
author Arpit Singh <arpitks@google.com> 2024-10-25 21:08:08 +0000
committer Arpit Singh <arpitks@google.com> 2024-11-18 11:01:03 +0000
commit24c8ba68bdfc5a728db06e3a778b2b4f43bca4e7 (patch)
tree8cf43165ce69e9479dd8b032f7f38363256c7476 /libs/input/PointerController.h
parentc319a30b5959af12369518757261476ae27857b9 (diff)
Check if cursor has moved out of viewport bounds in CursorController
This CL updates CursorController to check if and which boundary the cursor has crossed. This will be used to enable cursor moving between different connected displays. Test: presubmit and manual Bug: 367660694 Flag: com.android.input.flags.connected_displays_cursor Change-Id: Ib559e0d72364f446269e73cfa1671ee9d2f715ac
Diffstat (limited to 'libs/input/PointerController.h')
-rw-r--r--libs/input/PointerController.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/input/PointerController.h b/libs/input/PointerController.h
index ee8d1211341f..69bef546b788 100644
--- a/libs/input/PointerController.h
+++ b/libs/input/PointerController.h
@@ -51,7 +51,7 @@ public:
~PointerController() override;
- void move(float deltaX, float deltaY) override;
+ vec2 move(float deltaX, float deltaY) override;
void setPosition(float x, float y) override;
FloatPoint getPosition() const override;
ui::LogicalDisplayId getDisplayId() const override;
@@ -165,7 +165,7 @@ public:
~TouchPointerController() override;
- void move(float, float) override {
+ vec2 move(float, float) override {
LOG_ALWAYS_FATAL("Should not be called");
}
void setPosition(float, float) override {