CAPSENSE™ Middleware Library 5.0
Gesture Macros

General Description

Gesture macros.

Macros

#define CY_CAPSENSE_GESTURE_NO_GESTURE   (0x00u)
 No gesture detected.
 
#define CY_CAPSENSE_GESTURE_ALL_GESTURES_MASK   (0x07FFu)
 All gestures enable / detection mask.
 
#define CY_CAPSENSE_GESTURE_FILTERING_MASK   (0x8000u)
 Gesture enable filtering mask.
 
#define CY_CAPSENSE_GESTURE_TOUCHDOWN_MASK   (0x2000u)
 Detection mask of Touchdown.
 
#define CY_CAPSENSE_GESTURE_LIFTOFF_MASK   (0x4000u)
 Detection mask of Lift Off.
 
#define CY_CAPSENSE_GESTURE_ONE_FNGR_SINGLE_CLICK_MASK   (0x0001u)
 Enable / detection mask of one-finger single click gesture.
 
#define CY_CAPSENSE_GESTURE_ONE_FNGR_DOUBLE_CLICK_MASK   (0x0002u)
 Enable / detection mask of one-finger double click gesture.
 
#define CY_CAPSENSE_GESTURE_ONE_FNGR_CLICK_DRAG_MASK   (0x0004u)
 Enable / detection mask of one-finger click and drag gesture.
 
#define CY_CAPSENSE_GESTURE_TWO_FNGR_SINGLE_CLICK_MASK   (0x0008u)
 Enable / detection mask of two-finger single click gesture.
 
#define CY_CAPSENSE_GESTURE_ONE_FNGR_SCROLL_MASK   (0x0010u)
 Enable / detection mask of one-finger scroll gesture.
 
#define CY_CAPSENSE_GESTURE_TWO_FNGR_SCROLL_MASK   (0x0020u)
 Enable / detection mask of two-finger scroll gesture.
 
#define CY_CAPSENSE_GESTURE_ONE_FNGR_EDGE_SWIPE_MASK   (0x0040u)
 Enable / detection mask of one-finger edge swipe gesture.
 
#define CY_CAPSENSE_GESTURE_ONE_FNGR_FLICK_MASK   (0x0080u)
 Enable / detection mask of one-finger flick gesture.
 
#define CY_CAPSENSE_GESTURE_ONE_FNGR_ROTATE_MASK   (0x0100u)
 Enable / detection mask of one-finger rotate gesture.
 
#define CY_CAPSENSE_GESTURE_TWO_FNGR_ZOOM_MASK   (0x0200u)
 Enable / detection mask of two-finger zoom gesture.
 
#define CY_CAPSENSE_GESTURE_ONE_FNGR_LONG_PRESS_MASK   (0x0400u)
 Enable / detection mask of one-finger long press gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_OFFSET_ONE_SCROLL   (0x00u)
 Offset of direction of one-finger scroll gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_OFFSET_TWO_SCROLL   (0x02u)
 Offset of direction of two-finger scroll gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_OFFSET_ONE_EDGE   (0x04u)
 Offset of direction of one-finger edge swipe gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_OFFSET_ONE_ROTATE   (0x06u)
 Offset of direction of one-finger rotate gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_OFFSET_TWO_ZOOM   (0x07u)
 Offset of direction of two-finger zoom gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_OFFSET_ONE_FLICK   (0x08u)
 Offset of direction of one-finger flick gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_MASK_ONE_SCROLL   (0x0003u)
 Mask of direction of one-finger scroll gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_MASK_TWO_SCROLL   (0x000Cu)
 Mask of direction of two-finger scroll gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_MASK_ONE_EDGE   (0x0030u)
 Mask of direction of one-finger edge swipe gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_MASK_ONE_ROTATE   (0x0040u)
 Mask of direction of one-finger rotate gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_MASK_TWO_ZOOM   (0x0080u)
 Mask of direction of two-finger zoom gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_MASK_ONE_FLICK   (0x0700u)
 Mask of direction of one-finger flick gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_OFFSET   (16u)
 An extra direction offset returned by Cy_CapSense_DecodeWidgetGestures()
 
#define CY_CAPSENSE_GESTURE_DIRECTION_CW   (0x00u)
 CLOCKWISE direction of Rotate gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_CCW   (0x01u)
 COUNTER CLOCKWISE direction of Rotate gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_IN   (0x00u)
 ZOOM-IN direction of Zoom gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_OUT   (0x01u)
 ZOOM-OUT direction of Zoom gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_UP   (0x00u)
 UP direction of Scroll, Flick and Edge Swipe gestures.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_DOWN   (0x01u)
 DOWN direction of Scroll, Flick and Edge Swipe gestures.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_RIGHT   (0x02u)
 RIGHT direction of Scroll, Flick and Edge Swipe gestures.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_LEFT   (0x03u)
 LEFT direction of Scroll, Flick and Edge Swipe gestures.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_UP_RIGHT   (0x04u)
 UP-RIGHT direction of Flick gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_DOWN_LEFT   (0x05u)
 DOWN-LEFT direction of Flick gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_DOWN_RIGHT   (0x06u)
 DOWN-RIGHT direction of Flick gesture.
 
#define CY_CAPSENSE_GESTURE_DIRECTION_UP_LEFT   (0x07u)
 UP-LEFT direction of Flick gesture.