From 5cf172ff96ee73546db1106c0bcf0cda4fc68ada Mon Sep 17 00:00:00 2001 From: Jinhyung Choi Date: Thu, 7 Nov 2013 15:03:32 +0900 Subject: [PATCH] snap event: sync with libslp-sensor Change-Id: I95fd6d2b4e90722466343cf914ef03a72c5f3808 Signed-off-by: Jinhyung Choi --- include/motion_processor.h | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/include/motion_processor.h b/include/motion_processor.h index 62d68a8..8705669 100644 --- a/include/motion_processor.h +++ b/include/motion_processor.h @@ -32,24 +32,30 @@ class motion_processor:public cprocessor_module { public: enum motion_evet_type_t { - MOTION_ENGINE_EVENT_SNAP = (0x0080 << 16) | 0x0001, - MOTION_ENGINE_EVENT_SHAKE = (0x0080 << 16) | 0x0002, - MOTION_ENGINE_EVENT_DOUBLETAP = (0x0080 << 16) | 0x0004, - MOTION_ENGINE_EVENT_PANNING = (0x0080 << 16) | 0x0008, - MOTION_ENGINE_EVENT_TOP_TO_BOTTOM = (0x0080 << 16) | 0x0010, - MOTION_ENGINE_EVENT_DIRECT_CALL = (0x0080 << 16) | 0x0020, + MOTION_ENGINE_EVENT_SNAP = (0x0080<<16) | 0x0001, + MOTION_ENGINE_EVENT_SHAKE = (0x0080<<16) | 0x0002, + MOTION_ENGINE_EVENT_DOUBLETAP = (0x0080<<16) | 0x0004, + MOTION_ENGINE_EVENT_PANNING = (0x0080<<16) | 0x0008, + MOTION_ENGINE_EVENT_TOP_TO_BOTTOM = (0x0080<<16) | 0x0010, + MOTION_ENGINE_EVENT_DIRECT_CALL = (0x0080<<16) | 0x0020, + MOTION_ENGINE_EVENT_TILT_TO_UNLOCK = (0x0080<<16) | 0x0040, + MOTION_ENGINE_EVENT_LOCK_EXECUTE_CAMERA = (0x0080<<16) | 0x0080, + MOTION_ENGINE_EVENT_SMART_ALERT = (0x0080<<16) | 0x0100, + MOTION_ENGINE_EVENT_TILT = (0x0080<<16) | 0x0200, + MOTION_ENGINE_EVENT_PANNING_BROWSE = (0x0080<<16) | 0x0400, + MOTION_ENGINE_EVENT_NO_MOVE = (0x0080<<16) | 0x0800, }; enum motion_snap_event_t { - MOTION_ENGIEN_SNAP_NONE, - MOTION_ENGIEN_SNAP_LEFT, - MOTION_ENGIEN_SNAP_RIGHT, - MOTION_ENGIEN_FORWARD_SNAP_X, - MOTION_ENGIEN_FORWARD_SNAP_Y, - MOTION_ENGIEN_FORWARD_SNAP_Z, - MOTION_ENGIEN_BACKWARD_SNAP_X, - MOTION_ENGIEN_BACKWARD_SNAP_Y, - MOTION_ENGIEN_BACKWARD_SNAP_Z, + MOTION_ENGIEN_SNAP_NONE = 0, + MOTION_ENGIEN_NEGATIVE_SNAP_X = 1, + MOTION_ENGIEN_POSITIVE_SNAP_X = 2, + MOTION_ENGIEN_NEGATIVE_SNAP_Y = 3, + MOTION_ENGIEN_POSITIVE_SNAP_Y = 4, + MOTION_ENGIEN_NEGATIVE_SNAP_Z = 5, + MOTION_ENGIEN_POSITIVE_SNAP_Z = 6, + MOTION_ENGIEN_SNAP_LEFT = MOTION_ENGIEN_NEGATIVE_SNAP_X, + MOTION_ENGIEN_SNAP_RIGHT = MOTION_ENGIEN_POSITIVE_SNAP_X, }; enum motion_shake_event_t { -- 2.7.4