Added device information in TouchData/KeyEvent
[platform/core/uifw/dali-core.git] / dali / integration-api / events / point.h
index 3b05f5c..6570c65 100644 (file)
@@ -23,6 +23,7 @@
 #include <dali/public-api/math/degree.h>
 #include <dali/public-api/math/vector2.h>
 #include <dali/public-api/events/touch-point.h>
+#include <dali/devel-api/events/device.h>
 
 namespace Dali
 {
@@ -106,6 +107,18 @@ struct DALI_IMPORT_API Point
   void SetAngle( Degree angle );
 
   /**
+   * @brief Sets the class of the device for the event
+   * @param[in] deviceClass The class of the device.
+   */
+  void SetDeviceClass( DevelDevice::Class::Type deviceClass );
+
+  /**
+   * @brief Sets the subclass of the device for the event
+   * @param[in] deviceSubclass The subclass of the device.
+   */
+  void SetDeviceSubclass( DevelDevice::Subclass::Type deviceSubclass );
+
+  /**
    * @brief Retrieve the Unique Device ID of the point.
    * @return The Unique Device ID of the point.
    */
@@ -153,6 +166,20 @@ struct DALI_IMPORT_API Point
    */
   Degree GetAngle() const;
 
+  /**
+   * @brief Retrieve the class of the device for the event.
+   * @return The class of the device
+   */
+  DevelDevice::Class::Type GetDeviceClass() const;
+
+  /**
+   * @brief Retrieve the subclass of the device for the event.
+   * @return The subclass of the device
+   */
+  DevelDevice::Subclass::Type GetDeviceSubclass() const;
+
+
+
 public: // Not intended for Integration API developers
 
   /**
@@ -192,6 +219,8 @@ private:
   TouchPoint mTouchPoint; ///< Stores screen position, device Id, local & screen positions and the hit-actor. @see TouchPoint
   Vector2 mEllipseRadius; ///< Radius of both the horizontal and vertical radius (useful if an ellipse).
   Degree mAngle; ///< The angle of the press point, relative to the Y-Axis.
+  DevelDevice::Class::Type mDeviceClass;
+  DevelDevice::Subclass::Type mDeviceSubclass;
   float mPressure; ///< The touch pressure.
   float mRadius; ///< Radius of the press point, an average of the ellipse radius.
 };