Lines Matching refs:SwipeDirection
200 enum SwipeDirection { UP, DOWN, RIGHT, LEFT }; enum
202 static SwipeDirection FlipSwipeDirection(SwipeDirection direction) { in FlipSwipeDirection()
205 return SwipeDirection::DOWN; in FlipSwipeDirection()
207 return SwipeDirection::UP; in FlipSwipeDirection()
209 return SwipeDirection::LEFT; in FlipSwipeDirection()
211 return SwipeDirection::RIGHT; in FlipSwipeDirection()
216 SwipeDirection direction; in OnTouchDetected()
222 direction = dx < 0 ? SwipeDirection::LEFT : SwipeDirection::RIGHT; in OnTouchDetected()
224 direction = dy < 0 ? SwipeDirection::UP : SwipeDirection::DOWN; in OnTouchDetected()
244 case SwipeDirection::UP: in OnTouchDetected()
249 case SwipeDirection::DOWN: in OnTouchDetected()
254 case SwipeDirection::LEFT: in OnTouchDetected()
255 case SwipeDirection::RIGHT: in OnTouchDetected()