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-12-02 08:27:10 +0000
commit64a70881b3ca559559f416b54d2ec21dbb009fe4 (patch)
treeb8b761f55d91f6578dc470b0954c9eb16fec4c43 /libs/input/PointerController.h
parentc60efe594e0c2ce6b672516d9538700011fa5c98 (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: atest inputflinger_tests Test: verify cursor can move between displays as expected Bug: 367660694 Flag: com.android.input.flags.connected_displays_cursor Change-Id: Ida11e897d4e6767549dcc40da5c83e4c6be178c9
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..d0b98384dd9d 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;
+ FloatPoint 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 {
+ FloatPoint move(float, float) override {
LOG_ALWAYS_FATAL("Should not be called");
}
void setPosition(float, float) override {