/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
// CLASS HEADER
#include <dali/integration-api/events/point.h>
+#include <dali/public-api/events/mouse-button.h>
namespace Dali
{
: mTouchPoint( 0, TouchPoint::Started, 0.0f, 0.0f ),
mEllipseRadius(),
mAngle( 0.0f ),
+ mDeviceClass( Device::Class::NONE ),
+ mDeviceSubclass( Device::Subclass::NONE ),
mPressure( 1.0f ),
- mRadius( 0.0f )
+ mRadius( 0.0f ),
+ mMouseButton( MouseButton::INVALID )
{
}
: mTouchPoint( touchPoint ),
mEllipseRadius(),
mAngle( 0.0f ),
+ mDeviceClass( Device::Class::NONE ),
+ mDeviceSubclass( Device::Subclass::NONE ),
mPressure( 1.0f ),
- mRadius( 0.0f )
+ mRadius( 0.0f ),
+ mMouseButton( MouseButton::INVALID )
{
}
return mTouchPoint;
}
+void Point::SetDeviceClass( Device::Class::Type deviceClass )
+{
+ mDeviceClass = deviceClass;
+}
+
+void Point::SetDeviceSubclass( Device::Subclass::Type deviceSubclass )
+{
+ mDeviceSubclass = deviceSubclass;
+}
+
+Device::Class::Type Point::GetDeviceClass() const
+{
+ return mDeviceClass;
+}
+
+Device::Subclass::Type Point::GetDeviceSubclass() const
+{
+ return mDeviceSubclass;
+}
+
+MouseButton::Type Point::GetMouseButton() const
+{
+ return mMouseButton;
+}
+
+void Point::SetMouseButton(MouseButton::Type button)
+{
+ mMouseButton = button;
+}
+
+
} // namespace Integration
} // namespace Dali