From c9aa628d065eb08d6fa30f0ac21c6eca4cfbab75 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Wed, 11 Feb 2015 19:03:28 -0800 Subject: Cancel touch events when a low-level touch gesture occurs. When the touch firmware or driver sends a key event that is triggered by a low-level gesture such as a palm slap. For this to work, the touch device's .kl file must specify the "GESTURE" flag for each key that is produced by a gesture. Note that the "VIRTUAL" flag should also be specified for any such keys for which we would like to generate haptic feedback. eg. key 142 SLEEP VIRTUAL GESTURE Bug: 19264992 Change-Id: Ief494ec7e3ca66d2358a1001fdfae4f263ee1cd1 --- include/input/InputEventLabels.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/input/InputEventLabels.h') diff --git a/include/input/InputEventLabels.h b/include/input/InputEventLabels.h index df50237cd2..9aa7425878 100644 --- a/include/input/InputEventLabels.h +++ b/include/input/InputEventLabels.h @@ -376,6 +376,7 @@ static const InputEventLabel LEDS[] = { static const InputEventLabel FLAGS[] = { DEFINE_FLAG(VIRTUAL), DEFINE_FLAG(FUNCTION), + DEFINE_FLAG(GESTURE), { NULL, 0 } }; -- cgit v1.2.3-59-g8ed1b