Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 664834b6 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

InputDispatcher: Remove transform only for joysticks and touchpads

This partially reverts commit bd52771b.

Since window transforms can encode rotations, we need window transforms
for some non-pointer events such as relative mouse events. Joysticks and
touchapds are an exception to this, because neither expect their
reported values to be rotated. For this reason, we only remove window
transformations in InputDispatcher for these two types of devices.

The bug b/182325974 is now solved by selectively applying window
translations for pointer events in MotionEvent.

Bug: 182325974
Bug: 179274888
Test: atest inputflinger_tests
Test: manual with test app
Change-Id: I68a0c87f24a9ddea14e3078ad894410210e42b4a
parent 9f38881a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment