// EXTERNAL INCLUDES
#include <dali/devel-api/common/stage.h>
-#include <dali/public-api/events/touch-data.h>
+#include <dali/public-api/events/touch-event.h>
#include <dali/public-api/events/key-event.h>
#include <dali/public-api/events/wheel-event.h>
#include <dali/public-api/object/type-registry.h>
}
}
-bool WidgetView::OnTouch( Dali::Actor actor, const Dali::TouchData& event )
+bool WidgetView::OnTouch( Dali::Actor actor, const Dali::TouchEvent& event )
{
if( event.GetPointCount() == 0 )
{
}
//ToDo: We should check TIZEN_INPUT_DEVICE_CLAS_MOUSE
tizen_remote_surface_transfer_mouse_wheel( mRemoteSurface,
- event.direction,
- event.z,
+ event.GetDirection(),
+ event.GetDelta(),
TIZEN_INPUT_DEVICE_CLAS_MOUSE,
TIZEN_INPUT_DEVICE_SUBCLAS_NONE,
"",
- event.timeStamp
+ event.GetTime()
);
return false;
}
return (pixelSize * 72.0f) / meanDpi;
}
-void WidgetView::MouseIn( const Dali::TouchData& event )
+void WidgetView::MouseIn( const Dali::TouchEvent& event )
{
Vector2 localPos = event.GetLocalPosition( 0 );
);
}
-void WidgetView::MouseOut( const Dali::TouchData& event )
+void WidgetView::MouseOut( const Dali::TouchEvent& event )
{
tizen_remote_surface_transfer_mouse_event( mRemoteSurface,
TIZEN_REMOTE_SURFACE_EVENT_TYPE_MOUSE_OUT,
);
}
-bool WidgetView::MouseEvent( const Dali::TouchData& event )
+bool WidgetView::MouseEvent( const Dali::TouchEvent& event )
{
tizen_remote_surface_event_type type = TIZEN_REMOTE_SURFACE_EVENT_TYPE_NONE;
int button = 1;
return true;
}
-bool WidgetView::TouchEvent( const Dali::TouchData& event )
+bool WidgetView::TouchEvent( const Dali::TouchEvent& event )
{
tizen_remote_surface_event_type type = TIZEN_REMOTE_SURFACE_EVENT_TYPE_NONE;
int button = 1;
void ConnectSignal( tizen_remote_surface* surface );
- bool OnTouch( Dali::Actor actor, const Dali::TouchData& event );
+ bool OnTouch( Dali::Actor actor, const Dali::TouchEvent& event );
bool OnWheelEvent( Dali::Actor actor, const Dali::WheelEvent& event );
bool TerminateWidget();
- void MouseIn( const Dali::TouchData& event );
+ void MouseIn( const Dali::TouchEvent& event );
- void MouseOut( const Dali::TouchData& event );
+ void MouseOut( const Dali::TouchEvent& event );
- bool MouseEvent( const Dali::TouchData& event );
+ bool MouseEvent( const Dali::TouchEvent& event );
- bool TouchEvent( const Dali::TouchData& event );
+ bool TouchEvent( const Dali::TouchEvent& event );
void UpdateBuffer( struct tizen_remote_surface *surface, struct wl_buffer *buffer, int32_t fd);