replicant-frameworks_native/services
Christopher N. Hesse 00888b7eee inputflinger: disable touch input while using a stylus
Android 5.0 cannot form multitouch events from multiple input
devices. So it is not possible to report one touchpoint from the
stylus position and, at the same time, another touchpoint from a
finger touch. Instead, when a new input device starts up the currently
active input is cancelled. This is highly undesirable while writing
with the pen.

The easiest solution is to ignore non-stylus touch events while the
stylus is within range (hovering) of the touchscreen. For example,
N-trig digitizers implement this in hardware. But wacom digitizers do
report pen data simultaneously with touch data. This patch disables
(non-stylus) touch input within 50ms of stylus data. On my Galaxy
Note this is necessary to make stylus input usable.

Original commit by vbraun:
b9cb296130

Change-Id: I97f26369826e96c97461c8ae188f1c64dec1b4d3
2015-10-17 13:56:31 -07:00
..
batteryservice Replace IInterface::asBinder() with a static 2014-11-17 08:47:01 -08:00
inputflinger inputflinger: disable touch input while using a stylus 2015-10-17 13:56:31 -07:00
powermanager Frameworks/native: Wall Werror in batteryservice & powermanager 2014-11-13 14:31:11 -08:00
sensorservice Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors. 2015-07-20 17:32:09 -07:00
surfaceflinger input: Adjust priority 2015-10-17 13:51:11 -07:00