From: joogab.yun Date: Fri, 5 Jul 2024 06:44:45 +0000 (+0900) Subject: add log for touch event X-Git-Tag: accepted/tizen/7.0/unified/20240705.165252^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F314096%2F3;p=platform%2Fcore%2Fuifw%2Fwidget-viewer-dali.git add log for touch event Change-Id: I8d377161b3ec566496c8d4ffe4ea84fdb308e3fe --- 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,