diff options
author | 2025-01-29 18:42:06 +0000 | |
---|---|---|
committer | 2025-02-03 02:21:29 -0800 | |
commit | 3c090f80737df49e2b20861b4f5a9bf318fec43f (patch) | |
tree | 039341f47c238ebe8c50e5a920e331a1cd88a814 /include | |
parent | ddb2f99e4235da916b2fb22ca4b8892ae412297d (diff) |
[CD cursor] Adjust for density when moving cursor between displays
Connected displays may have different densities we need to adjust our
calculations to consider this when cursor moves between displays.
Test: atest inputflinger_tests
Bug: 367660694
Flag: com.android.input.flags.connected_displays_cursor
Change-Id: Iecc262cf2efdda3249aff69d5ac157b4c434a575
Diffstat (limited to 'include')
-rw-r--r-- | include/input/DisplayTopologyGraph.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/input/DisplayTopologyGraph.h b/include/input/DisplayTopologyGraph.h index f3f5148540..3ae865a33a 100644 --- a/include/input/DisplayTopologyGraph.h +++ b/include/input/DisplayTopologyGraph.h @@ -42,7 +42,9 @@ enum class DisplayTopologyPosition : int32_t { */ struct DisplayTopologyAdjacentDisplay { ui::LogicalDisplayId displayId = ui::LogicalDisplayId::INVALID; + // Position of the adjacent display, relative to the source display. DisplayTopologyPosition position; + // The offset in DP of the adjacent display, relative to the source display. float offsetDp; }; |