summaryrefslogtreecommitdiffstats
path: root/include/input
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2015-02-18 11:38:55 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-18 11:38:55 +0000
commitae5a081ddfcd8a1b400d94081464346e5c49cc21 (patch)
tree0abd6064751afc0726115a930147f9e2e0568a3c /include/input
parent326db4f16749e5fd4c29662b654bdebcd606c291 (diff)
parent7735c058869e0a7fd716054110aa6cb4eff4b075 (diff)
downloadframeworks_native-ae5a081ddfcd8a1b400d94081464346e5c49cc21.zip
frameworks_native-ae5a081ddfcd8a1b400d94081464346e5c49cc21.tar.gz
frameworks_native-ae5a081ddfcd8a1b400d94081464346e5c49cc21.tar.bz2
am 7735c058: am c9aa628d: Cancel touch events when a low-level touch gesture occurs.
* commit '7735c058869e0a7fd716054110aa6cb4eff4b075': Cancel touch events when a low-level touch gesture occurs.
Diffstat (limited to 'include/input')
-rw-r--r--include/input/Input.h12
-rw-r--r--include/input/InputEventLabels.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/include/input/Input.h b/include/input/Input.h
index 96b6885..c360f63 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -149,10 +149,22 @@ enum {
* NOTE: If you want a flag to be able to set in a keylayout file, then you must add it to
* InputEventLabels.h as well. */
+ // Indicates that the event should wake the device.
POLICY_FLAG_WAKE = 0x00000001,
+
+ // Indicates that the key is virtual, such as a capacitive button, and should
+ // generate haptic feedback. Virtual keys may be suppressed for some time
+ // after a recent touch to prevent accidental activation of virtual keys adjacent
+ // to the touch screen during an edge swipe.
POLICY_FLAG_VIRTUAL = 0x00000002,
+
+ // Indicates that the key is the special function modifier.
POLICY_FLAG_FUNCTION = 0x00000004,
+ // Indicates that the key represents a special gesture that has been detected by
+ // the touch firmware or driver. Causes touch events from the same device to be canceled.
+ POLICY_FLAG_GESTURE = 0x00000008,
+
POLICY_FLAG_RAW_MASK = 0x0000ffff,
/* These flags are set by the input dispatcher. */
diff --git a/include/input/InputEventLabels.h b/include/input/InputEventLabels.h
index df50237..9aa7425 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 }
};