Disable mouse acceleration and scaling when Pointer Capture is enabled

Pointer Capture is usually used by games. Disabling pointer acceleration
and speed scaling for mice when the feature is enabled would allow
games/libraries  to handle mouse events directly from the device, giving
them more flexibility to tune the behavior.

This makes Pointer Capture more similar between mice and touchpads,
since they both now report the same values that the raw input device
reports. This should give the most flexibility for apps to handle the
API at a low-level.

Bug: 225853027
Test: atest inputflinger_tests
Change-Id: I5eba5257ec3b47b0772a6a6435a64f5102c2c4b7
2 files changed