summaryrefslogtreecommitdiff
path: root/libs/input/Input.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-05-20 16:00:42 -0700
committer Prabir Pradhan <prabirmsp@google.com> 2021-06-21 14:17:59 -0700
commit664834b64dc949cb5e1d33491ee07d0a0a6c3d51 (patch)
tree657da44a12d93641d7e0868048f8c0342ee52dd1 /libs/input/Input.cpp
parent9f38881a1b333c16b5ed46384d45ecaf276e7707 (diff)
InputDispatcher: Remove transform only for joysticks and touchpads
This partially reverts commit bd52771be41ae18f9fda43301eeeab89021d4248. 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
Diffstat (limited to 'libs/input/Input.cpp')
0 files changed, 0 insertions, 0 deletions