summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventDispatcher.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-10-26 10:19:49 -0700
committer Prabir Pradhan <prabirmsp@google.com> 2021-11-08 04:20:54 -0800
commit7e1ee565b3fe4738e6771bceb2e9679562232992 (patch)
treec0873dfce225a5c5ca3e5e4e161c851f3c491abd /libs/gui/DisplayEventDispatcher.cpp
parenta1273194684c9c0f1118b7f5127d05363d41cde7 (diff)
Move Joystick and Touchpad event transformation logic to MotionEvent
We would like to have all source and axis based transformations calculated in the same place, which will be in the MotionEvent class. This has the added benefit that MotionEvents created by developers through MotionEvent.obtain() in Java will behave like motion events generated from input devices in terms of how they're affected by transformations. Since axes from joysticks and touchpads should never be transfomred, we previously solved this by using identity matrices for them in InputDispatcher. Now, we move that logic to MotionEvent when applying the transform. Bug: 179274888 Test: atest libinput_test Test: atest inputflinger_tests Change-Id: Ic02466e01f2ba3131aca73bd10933ff81cb38cc9
Diffstat (limited to 'libs/gui/DisplayEventDispatcher.cpp')
0 files changed, 0 insertions, 0 deletions