Set appropriate cursor position on viewport transition
This CL updates PointerChoreographer to set position of the cursor on
the destination display when cursor crosses the boundary.
Also updates the logic to lookup destination displays in topology to
account for size and offset of the display.
Test: presubmit and manual
Bug: 367660694
Flag: com.android.input.flags.connected_displays_cursor
Change-Id: I18e3bd925a44d541e34946494e7e1b9db0a2e786
diff --git a/services/inputflinger/include/PointerControllerInterface.h b/services/inputflinger/include/PointerControllerInterface.h
index 3391f79..abca209 100644
--- a/services/inputflinger/include/PointerControllerInterface.h
+++ b/services/inputflinger/include/PointerControllerInterface.h
@@ -73,7 +73,7 @@
virtual std::string dump() = 0;
/* Move the pointer and return unconsumed delta if the pointer has crossed the current
- * viewport bounds .
+ * viewport bounds.
*
* Return value may be used to move pointer to corresponding adjacent display, if it exists in
* the display-topology */
@@ -149,6 +149,8 @@
/* Resets the flag to skip screenshot of the pointer indicators for all displays. */
virtual void clearSkipScreenshotFlags() = 0;
+
+ virtual ui::Transform getDisplayTransform() const = 0;
};
} // namespace android