Add FeedTouch api to GestureDetector. 33/302733/24
authorjoogab.yun <joogab.yun@samsung.com>
Wed, 13 Dec 2023 01:40:20 +0000 (10:40 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Thu, 4 Jan 2024 08:04:30 +0000 (17:04 +0900)
commit54e52fd9d4556e19b2e97082b057ad886952e55e
tree20c3f23219fa8adb3ade58414337ea1361b6d922
parent4d704c7b0382a209a5fdebf025b452cac80971c6
Add FeedTouch api to GestureDetector.

This is a method of recognizing gestures by feeding a touch event to a specific actor.

This causes the actor to recognize the gesture without going through a hittest.

So, you can recognize gestures based on touchEvent as shown below.

mTapDetector = TapGestureDetector::New();
mTapDetector.DetectedSignal().Connect(this, &HelloWorldController::OnTap);
control.TouchedSignal().Connect(this, &HelloWorldController::OnTouch);

bool OnTouch(Actor actor, const TouchEvent& touch)
{
 mTapDetector.FeedTouch(actor, touch);
 return true;
}

This is the beginning of a new gesture recognition method.

Change-Id: Iecf0eab7a82e54a981f69d2e309675afcfa439f1
31 files changed:
automated-tests/src/dali/utc-Dali-LongPressGestureDetector.cpp
automated-tests/src/dali/utc-Dali-PanGestureDetector.cpp
automated-tests/src/dali/utc-Dali-PinchGestureDetector.cpp
automated-tests/src/dali/utc-Dali-RotationGestureDetector.cpp
automated-tests/src/dali/utc-Dali-TapGestureDetector.cpp
dali/internal/event/events/gesture-detector-impl.cpp
dali/internal/event/events/gesture-detector-impl.h
dali/internal/event/events/gesture-event-processor.cpp
dali/internal/event/events/gesture-event-processor.h
dali/internal/event/events/gesture-event.h
dali/internal/event/events/gesture-processor.cpp
dali/internal/event/events/gesture-processor.h
dali/internal/event/events/gesture-recognizer.h
dali/internal/event/events/long-press-gesture/long-press-gesture-processor.cpp
dali/internal/event/events/long-press-gesture/long-press-gesture-processor.h
dali/internal/event/events/long-press-gesture/long-press-gesture-recognizer.cpp
dali/internal/event/events/pan-gesture/pan-gesture-processor.cpp
dali/internal/event/events/pan-gesture/pan-gesture-processor.h
dali/internal/event/events/pan-gesture/pan-gesture-recognizer.cpp
dali/internal/event/events/pinch-gesture/pinch-gesture-processor.cpp
dali/internal/event/events/pinch-gesture/pinch-gesture-processor.h
dali/internal/event/events/pinch-gesture/pinch-gesture-recognizer.cpp
dali/internal/event/events/rotation-gesture/rotation-gesture-processor.cpp
dali/internal/event/events/rotation-gesture/rotation-gesture-processor.h
dali/internal/event/events/rotation-gesture/rotation-gesture-recognizer.cpp
dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp
dali/internal/event/events/tap-gesture/tap-gesture-processor.h
dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp
dali/internal/event/events/touch-event-impl.h
dali/public-api/events/gesture-detector.cpp
dali/public-api/events/gesture-detector.h