diff options
author | 2021-05-13 14:33:56 -0700 | |
---|---|---|
committer | 2021-05-24 17:39:02 -0700 | |
commit | accebe0f914df759e13135d93ed8a0c61606fc87 (patch) | |
tree | c7a4a48cf307e52933cc5113a18abf9047e1495d /libs/gui/SurfaceComposerClient.cpp | |
parent | f5334b8e52722ee13dd019203cfc9099a9cd930e (diff) |
CursorInputMapper: Rotate cursor position for per-window-input-rotation
When per-window-input-rotation is enabled, InputReader works in the
un-rotated display coordinate space while the PointerController works in
the rotated coordinate space.
This means when we obtain the cursor position in CursorInputMapper, it
is in the rotated coordinate space. So we need to convert it to the
unrotated coordinate space.
Bug: 179274888
Test: atest inputflinger_tests
Test: manual with a mouse device while rotating phone
Change-Id: Ide81ac902606e6ec6c4f8fa1d8bbfd5aa3a49b8e
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions