#define DALI_INTERNAL_EVENT_GESTURE_EVENT_H
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
namespace Dali
{
-
namespace Internal
{
-
/**
* This is the abstract base structure for any gestures that the adaptor detects and wishes to send
* to the Core.
/**
* Gesture Type.
*/
- Gesture::Type gestureType;
+ GestureType::Value gestureType;
/**
* The state of the gesture.
*/
- Gesture::State state;
+ GestureState state;
/**
* The time the gesture took place.
*/
uint32_t time;
-protected: // Constructors only to be used by derived structures.
+ /**
+ * This is the value of which source the gesture was started with. (ex : mouse)
+ */
+ GestureSourceType sourceType;
+
+ /**
+ * The data of the source type.
+ */
+ GestureSourceData sourceData;
+protected: // Constructors only to be used by derived structures.
/**
* This constructor is only used by derived classes.
* @param[in] gesture The type of gesture event.
* @param[in] gestureState The state of the gesture event.
*/
- GestureEvent( Gesture::Type gesture, Gesture::State gestureState);
+ GestureEvent(GestureType::Value gesture, GestureState gestureState);
};
} // namespace Internal