/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <dali/integration-api/debug.h>
#include <dali/integration-api/adaptor-framework/adaptor.h>
#include <dali/integration-api/adaptor-framework/android/android-framework.h>
-#include <dali/public-api/events/touch-point.h>
+#include <dali/devel-api/events/touch-point.h>
#include <dali/public-api/events/key-event.h>
#include <dali/devel-api/events/key-event-devel.h>
int32_t deviceId = AInputEvent_getDeviceId( event );
float x = AMotionEvent_getX( event, 0 );
float y = AMotionEvent_getY( event, 0 );
- TouchPoint::State state = TouchPoint::Down;
+ Dali::PointState::Type state = Dali::PointState::DOWN;
int32_t action = AMotionEvent_getAction( event );
int64_t timeStamp = AMotionEvent_getEventTime( event );
case AMOTION_EVENT_ACTION_DOWN:
break;
case AMOTION_EVENT_ACTION_UP:
- state = TouchPoint::Up;
+ state = Dali::PointState::UP;
break;
case AMOTION_EVENT_ACTION_MOVE:
- state = TouchPoint::Motion;
+ state = Dali::PointState::MOTION;
break;
case AMOTION_EVENT_ACTION_CANCEL:
- state = TouchPoint::Interrupted;
+ state = Dali::PointState::INTERRUPTED;
break;
case AMOTION_EVENT_ACTION_OUTSIDE:
- state = TouchPoint::Leave;
+ state = Dali::PointState::LEAVE;
break;
}
#include <cstring>
#include <sys/time.h>
-#include <dali/public-api/events/touch-point.h>
+#include <dali/devel-api/events/touch-point.h>
#include <dali/public-api/events/key-event.h>
#include <dali/public-api/events/wheel-event.h>
#include <dali/integration-api/debug.h>
}
// Create a touch point object.
- TouchPoint::State touchPointState( TouchPoint::Down );
+ PointState::Type touchPointState( PointState::DOWN );
if( info.state == 0 )
{
- touchPointState = TouchPoint::Down; // Mouse down.
+ touchPointState = PointState::DOWN; // Mouse down.
}
else if( info.state == 1 )
{
- touchPointState = TouchPoint::Motion; // Mouse move.
+ touchPointState = PointState::MOTION; // Mouse move.
}
else if( info.state == 2 )
{
- touchPointState = TouchPoint::Up; // Mouse up.
+ touchPointState = PointState::UP; // Mouse up.
}
else
{
- touchPointState = TouchPoint::Interrupted; // Error.
+ touchPointState = PointState::INTERRUPTED; // Error.
}
// Send touch event to accessibility adaptor.