summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-09-08 09:56:44 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-21 01:13:55 -0700
commit4e8120a3641d5ed8de5a53e08f2bb711e5516167 (patch)
tree36f8f168c954b070c4044c75d2ac690c6f027f09 /util
parent6f06cd5f7b78e4624618d67bf0142015c4d51298 (diff)
downloadchrome-ec-4e8120a3641d5ed8de5a53e08f2bb711e5516167.tar.gz
common: motion: Add double tap gesture host interface
Allow the host to enable/disable double tap. Send event when double tap is present. Also fix a bug when scanning for gestures. BRANCH=smaug BUG=chrome-os-partner:44754 TEST=compile. Check on Ryu. Change-Id: I50d008cd3823072ab1c1e2d21f1276cd2185d797 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/298683
Diffstat (limited to 'util')
-rw-r--r--util/ectool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c
index dd419ceb3b..0617559220 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -3271,6 +3271,9 @@ static void motionsense_display_activities(uint32_t activities)
if (activities & (1 << MOTIONSENSE_ACTIVITY_SIG_MOTION))
printf("%d: Significant motion\n",
MOTIONSENSE_ACTIVITY_SIG_MOTION);
+ if (activities & (1 << MOTIONSENSE_ACTIVITY_DOUBLE_TAP))
+ printf("%d: Double tap\n",
+ MOTIONSENSE_ACTIVITY_DOUBLE_TAP);
}
static int cmd_motionsense(int argc, char **argv)