input: add method to request specific pointer capture mode
Currently there are only two modes, UNCAPTURED and ABSOLUTE, which are
equivalent to the existing uncaptured and captured states respectively,
but this will allow us to add a new RELATIVE mode in upcoming changes.
Test: check that a test app can still request and release capture, and
receives events as appropriate in each state
Test: $ atest CtsInputTestCases:android.input.cts.\
{TouchpadAbsoluteCaptureModeTest,MouseCaptureTest}
Bug: 403531245
Flag: com.android.hardware.input.pointer_capture_modes
Change-Id: I39036091e9e338d9904f8c491b19af01ae069833
Loading
Please register or sign in to comment