commit | ea31d4f8f95bbaedbe518f4a6e2a1bf9ea04b149 | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Thu Nov 10 20:48:01 2022 +0000 |
committer | Prabir Pradhan <prabirmsp@google.com> | Fri Dec 16 23:13:20 2022 +0000 |
tree | 1e4578e1c60e1927c26d2b0a74261a8249278797 | |
parent | e383bd9157ae647b1ac7eb43c77851910957d140 [diff] |
TouchInputMapper: Use ui::Transform to "cook" raw input coordinates Instead of manually scaling and rotating the input device's raw coordinates to the un-rotated display's coordinate space, we use a transfomation matrix as a helper. This change also exposed some bugs, where the tests were enforcing incorrect behavior. Bug: 236798672 Test: atest inputflinger_tests Test: manual with touchscreen and stylus Change-Id: I15b5fa6696720736ff1a598f88a4bc7067644cba