replicant-frameworks_native/services/inputflinger
Prashant Malani ee03865fe5 inputflinger: Add support for scaling and true value reporting
-1/+1 somewhat simplifies the values that can be generated by rotary
encoders, and rules out the possibility of batching and more nuanced
movement reporting.

So, we modify the device configuration to allow values other than -1 and
1 to be supported. In order to give the developer a sense of what these
values map to in terms of angular displacement, we also parse a
resolution configuration from the devices IDC file.

This will be specified as:

device.res = xxxx

of type float. If a value is not provided, a default res value of 0.0f
is used.

This patch also adds a per device scaling factor, which is used to
suitably modify the values reported (as well as the resolution) to tune
the input events generated and resulting UI according to the hardware.
This can be specified in the IDC file as:

device.scalingFactor = xxxx

of type float. If a scaling factor is not provided, a default of 1.0f
is used.

Bug: 22836852
Bug: 18707397
Change-Id: I13686f64de1b52d3f6c97b2587ae41e52d1db6e2
2016-01-11 17:37:38 -08:00
..
host DO NOT MERGE Revert "am f37143d8: Merge "Cancel touches as well as pointer gestures." into mnc-dev" 2015-09-22 22:05:48 +01:00
tests Inputflinger: hook up key event replacement processing 2015-09-29 13:27:16 -07:00
Android.mk
EventHub.cpp Merge "inputflinger: Initial support for rotary encoders." into cw-e-dev 2015-12-08 01:27:17 +00:00
EventHub.h Merge "inputflinger: Initial support for rotary encoders." into cw-e-dev 2015-12-08 01:27:17 +00:00
InputApplication.cpp
InputApplication.h
InputDispatcher.cpp Send cancelation events to monitors when injection fails. 2015-06-12 13:25:11 +01:00
InputDispatcher.h Send cancelation events to monitors when injection fails. 2015-06-12 13:25:11 +01:00
InputListener.cpp Revert "Revert "Add new MotionEvent actions for button press and release."" 2015-05-14 14:48:03 +01:00
InputListener.h Revert "Revert "Add new MotionEvent actions for button press and release."" 2015-05-14 14:48:03 +01:00
InputManager.cpp
InputManager.h
InputReader.cpp inputflinger: Add support for scaling and true value reporting 2016-01-11 17:37:38 -08:00
InputReader.h inputflinger: Add support for scaling and true value reporting 2016-01-11 17:37:38 -08:00
InputWindow.cpp
InputWindow.h
PointerControllerInterface.h