From: joogab.yun Date: Wed, 5 Apr 2023 02:21:26 +0000 (+0900) Subject: Add trace log mouse button and wheel X-Git-Tag: dali_2.2.21~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=71a66c43a67de2cbbedf6b5f227a7f10c1e99852 Add trace log mouse button and wheel Change-Id: I7fae8f90fdaad2b9bd6f2481debc2167eb7fee24 --- diff --git a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp index 133e1c7..468fc54 100644 --- a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp +++ b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp @@ -1137,6 +1137,8 @@ void WindowBaseEcoreWl2::OnMouseButtonDown(void* data, int type, void* event) if(touchEvent->window == static_cast(ecore_wl2_window_id_get(mEcoreWindow))) { + DALI_TRACE_SCOPE(gTraceFilter, "DALI_ON_MOUSE_DOWN"); + Device::Class::Type deviceClass; Device::Subclass::Type deviceSubclass; @@ -1177,6 +1179,8 @@ void WindowBaseEcoreWl2::OnMouseButtonUp(void* data, int type, void* event) if(touchEvent->window == static_cast(ecore_wl2_window_id_get(mEcoreWindow))) { + DALI_TRACE_SCOPE(gTraceFilter, "DALI_ON_MOUSE_UP"); + Device::Class::Type deviceClass; Device::Subclass::Type deviceSubclass; @@ -1204,6 +1208,8 @@ void WindowBaseEcoreWl2::OnMouseButtonMove(void* data, int type, void* event) if(touchEvent->window == static_cast(ecore_wl2_window_id_get(mEcoreWindow))) { + DALI_TRACE_SCOPE(gTraceFilter, "DALI_ON_MOUSE_MOVE"); + Device::Class::Type deviceClass; Device::Subclass::Type deviceSubclass; @@ -1230,6 +1236,8 @@ void WindowBaseEcoreWl2::OnMouseButtonCancel(void* data, int type, void* event) if(touchEvent->window == static_cast(ecore_wl2_window_id_get(mEcoreWindow))) { + DALI_TRACE_SCOPE(gTraceFilter, "DALI_ON_MOUSE_CANCEL"); + Integration::Point point; point.SetDeviceId(touchEvent->multi.device); point.SetState(PointState::INTERRUPTED); @@ -1247,6 +1255,8 @@ void WindowBaseEcoreWl2::OnMouseWheel(void* data, int type, void* event) if(mouseWheelEvent->window == static_cast(ecore_wl2_window_id_get(mEcoreWindow))) { + DALI_TRACE_SCOPE(gTraceFilter, "DALI_ON_MOUSE_WHEEL"); + DALI_LOG_INFO(gWindowBaseLogFilter, Debug::General, "WindowBaseEcoreWl2::OnMouseWheel: direction: %d, modifiers: %d, x: %d, y: %d, z: %d\n", mouseWheelEvent->direction, mouseWheelEvent->modifiers, mouseWheelEvent->x, mouseWheelEvent->y, mouseWheelEvent->z); Integration::WheelEvent wheelEvent(Integration::WheelEvent::MOUSE_WHEEL, mouseWheelEvent->direction, mouseWheelEvent->modifiers, Vector2(mouseWheelEvent->x, mouseWheelEvent->y), mouseWheelEvent->z, mouseWheelEvent->timestamp); @@ -2064,7 +2074,6 @@ unsigned int WindowBaseEcoreWl2::GetAuxiliaryHintId(const std::string& hint) con return 0; } - Rect WindowBaseEcoreWl2::RecalculateInputRect(const Rect& rect) { Rect newRect; @@ -2919,7 +2928,7 @@ bool WindowBaseEcoreWl2::IsFloatingModeEnabled() const void WindowBaseEcoreWl2::IncludeInputRegion(const Rect& inputRegion) { - Rect convertRegion = RecalculateInputRect(inputRegion); + Rect convertRegion = RecalculateInputRect(inputRegion); Eina_Rectangle rect; rect.x = convertRegion.x; @@ -2934,7 +2943,7 @@ void WindowBaseEcoreWl2::IncludeInputRegion(const Rect& inputRegion) void WindowBaseEcoreWl2::ExcludeInputRegion(const Rect& inputRegion) { - Rect convertRegion = RecalculateInputRect(inputRegion); + Rect convertRegion = RecalculateInputRect(inputRegion); Eina_Rectangle rect; rect.x = convertRegion.x;