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
This commit is contained in:
Gwendal Grignou
2015-09-08 09:56:44 -07:00
committed by chrome-bot
parent 6f06cd5f7b
commit 4e8120a364
3 changed files with 25 additions and 9 deletions

View File

@@ -1788,6 +1788,7 @@ struct ec_response_motion_sense_fifo_data {
enum motionsensor_activity {
MOTIONSENSE_ACTIVITY_RESERVED = 0,
MOTIONSENSE_ACTIVITY_SIG_MOTION = 1,
MOTIONSENSE_ACTIVITY_DOUBLE_TAP = 2,
};
struct ec_motion_sense_activity {