summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventDispatcher.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-11-04 16:51:29 -0700
committer Prabir Pradhan <prabirmsp@google.com> 2021-11-17 02:14:06 -0800
commit6b430413d07b6afca1a4146ea91809567b5cfe9a (patch)
treeceb69c9d88200e64d7779decdb8e640690da4937 /libs/gui/DisplayEventDispatcher.cpp
parent3bb6799ff0b68f818eb4a01d2a6b07fe9575edf0 (diff)
Change PointerController to display space
PointerController used to work in the logical display space, so TouchInputMapper and CursorInputMapper would need to transform the coordinates before interacting with it. This CL makes PointerController work in the display space. It will transform incoming and outgoing coordinates to stay in the display space using the DisplayInfo provided by SurfaceFlinger. Using info provided by SF also means that there will be better synchonization between the pointers and display changes like rotation. Bug: 188939842 Bug: 144544464 Test: manual: ensure mouse and touch spots work in different display orientations and sizes set using "adb shell wm size" Change-Id: I764c070adef7e9f26c0062f1b3466c7115a305ac
Diffstat (limited to 'libs/gui/DisplayEventDispatcher.cpp')
0 files changed, 0 insertions, 0 deletions