summaryrefslogtreecommitdiff
path: root/include/android/input.h
diff options
context:
space:
mode:
author Chris Ye <lzye@google.com> 2020-10-16 12:55:26 -0700
committer Chris Ye <lzye@google.com> 2020-12-16 15:42:57 -0800
commitf59a2f484d4765edd74c9bb3f911f66c4eb7a3f4 (patch)
treeb91d1eb60a4d61bf4a7bc44f2f170633f61b176f /include/android/input.h
parentef7705d5695070d62ed58047021af5318d91d494 (diff)
Add SensorManager support in inputflinger.
Add sensor device, sensor input mapper, sens event dispatcher support into inputflinger. Bug: 161634265 Test: atest inputflinger_tests Change-Id: I2dcb2c35d9dccefc4cd8d939b79cf340931a9410
Diffstat (limited to 'include/android/input.h')
-rw-r--r--include/android/input.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/android/input.h b/include/android/input.h
index 38af89a31e..b5d399ee09 100644
--- a/include/android/input.h
+++ b/include/android/input.h
@@ -856,6 +856,8 @@ enum {
AINPUT_SOURCE_TOUCH_NAVIGATION = 0x00200000 | AINPUT_SOURCE_CLASS_NONE,
/** joystick */
AINPUT_SOURCE_JOYSTICK = 0x01000000 | AINPUT_SOURCE_CLASS_JOYSTICK,
+ /** sensor */
+ AINPUT_SOURCE_SENSOR = 0x02000000 | AINPUT_SOURCE_CLASS_JOYSTICK,
/** rotary encoder */
AINPUT_SOURCE_ROTARY_ENCODER = 0x00400000 | AINPUT_SOURCE_CLASS_NONE,