Loading
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