add log for touch event 96/314096/3 accepted/tizen/7.0/unified/20240705.165252
authorjoogab.yun <joogab.yun@samsung.com>
Fri, 5 Jul 2024 06:44:45 +0000 (15:44 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Fri, 5 Jul 2024 08:46:24 +0000 (17:46 +0900)
Change-Id: I8d377161b3ec566496c8d4ffe4ea84fdb308e3fe

widget_viewer_dali/internal/widget_view/widget_view_impl.cpp

index 4618fa9138ceb1d4b110aa18a31f003653566447..723817f5a639dde47902c36c598eed50510ae20d 100644 (file)
@@ -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,