[Tizen] Add FeedKeyEvent, FeedTouchPoint and FeedWheelEvent
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / window-devel.cpp
index 67fafa3..559d91b 100644 (file)
@@ -206,6 +206,24 @@ bool IsWindowRotating(Window window)
   return GetImplementation(window).IsWindowRotating();
 }
 
+void FeedTouchPoint(Window window, const Dali::TouchPoint& point, int32_t timeStamp)
+{
+  Integration::Point convertedPoint(point);
+  GetImplementation(window).FeedTouchPoint(convertedPoint, timeStamp);
+}
+
+void FeedWheelEvent(Window window, const Dali::WheelEvent& wheelEvent)
+{
+  Integration::WheelEvent convertedEvent(static_cast<Integration::WheelEvent::Type>(wheelEvent.GetType()), wheelEvent.GetDirection(), wheelEvent.GetModifiers(), wheelEvent.GetPoint(), wheelEvent.GetDelta(), wheelEvent.GetTime());
+  GetImplementation(window).FeedWheelEvent(convertedEvent);
+}
+
+void FeedKeyEvent(Window window, const Dali::KeyEvent& keyEvent)
+{
+  Integration::KeyEvent convertedEvent(keyEvent.GetKeyName(), keyEvent.GetLogicalKey(), keyEvent.GetKeyString(), keyEvent.GetKeyCode(), keyEvent.GetKeyModifier(), keyEvent.GetTime(), static_cast<Integration::KeyEvent::State>(keyEvent.GetState()), keyEvent.GetCompose(), keyEvent.GetDeviceName(), keyEvent.GetDeviceClass(), keyEvent.GetDeviceSubclass());
+  GetImplementation(window).FeedKeyEvent(convertedEvent);
+}
+
 } // namespace DevelWindow
 
 } // namespace Dali