From d4a4617c7a1aa59d5a1964e786f0114aeb84596c Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Fri, 5 Jul 2024 15:44:45 +0900 Subject: [PATCH] add log for touch event Change-Id: I8d377161b3ec566496c8d4ffe4ea84fdb308e3fe --- .../internal/widget_view/widget_view_impl.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp b/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp index 4618fa9..723817f 100644 --- a/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp +++ b/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp @@ -1281,12 +1281,14 @@ void WidgetView::UpdateImageSource( tbm_surface_h source ) bool WidgetView::OnTouch( Dali::Actor actor, const Dali::TouchEvent& event ) { + DALI_LOG_RELEASE_INFO("OnTouch count : %d \n", event.GetPointCount()); if( event.GetPointCount() == 0 ) { return false; } Device::Class::Type deviceType = event.GetDeviceClass( 0 ); + DALI_LOG_RELEASE_INFO("OnTouch deviceType : %d \n", deviceType); if( deviceType == Device::Class::MOUSE ) { return MouseEvent( event ); @@ -1670,6 +1672,7 @@ bool WidgetView::MouseEvent( const Dali::TouchEvent& event ) tizen_remote_surface_event_type type = TIZEN_REMOTE_SURFACE_EVENT_TYPE_NONE; int button = 1; + DALI_LOG_RELEASE_INFO("MouseEvent state : %d \n", event.GetState( 0 )); switch( event.GetState( 0 ) ) { case Dali::PointState::UP: @@ -1678,6 +1681,7 @@ bool WidgetView::MouseEvent( const Dali::TouchEvent& event ) if( mRetryState ) { + DALI_LOG_RELEASE_INFO("mRetryState return false\n"); ActivateFaultedWidget(); return false; } @@ -1718,6 +1722,7 @@ bool WidgetView::MouseEvent( const Dali::TouchEvent& event ) Vector2 localPos = event.GetLocalPosition( 0 ); + DALI_LOG_RELEASE_INFO("call tizen_remote_surface_transfer_mouse_event!!!\n"); tizen_remote_surface_transfer_mouse_event( mRemoteSurface, type, 0, @@ -1747,6 +1752,7 @@ bool WidgetView::TouchEvent( const Dali::TouchEvent& event ) tizen_remote_surface_event_type type = TIZEN_REMOTE_SURFACE_EVENT_TYPE_NONE; int button = 1; + DALI_LOG_RELEASE_INFO("TouchEvent state : %d \n", event.GetState( 0 )); switch( event.GetState( 0 ) ) { case Dali::PointState::UP: @@ -1755,6 +1761,7 @@ bool WidgetView::TouchEvent( const Dali::TouchEvent& event ) if( mRetryState ) { + DALI_LOG_RELEASE_INFO("mRetryState return false\n"); ActivateFaultedWidget(); return false; } @@ -1788,12 +1795,13 @@ bool WidgetView::TouchEvent( const Dali::TouchEvent& event ) if( mRemoteSurface == NULL ) { - DALI_LOG_ERROR("There is no RemoteSurface so it can not use TouchEvent"); + DALI_LOG_RELEASE_INFO("There is no RemoteSurface so it can not use TouchEvent"); return false; } Vector2 localPos = event.GetLocalPosition( 0 ); + DALI_LOG_RELEASE_INFO("call tizen_remote_surface_transfer_touch_event!!!\n"); tizen_remote_surface_transfer_touch_event( mRemoteSurface, type, 0, -- 2.34.1