X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fevents%2Fpoint.cpp;h=7b52bc3570f9018405de48d73d34441279034a30;hb=f329cb924a9525c4e268872c993d66fbec822b97;hp=19b44b0b00a963867d0bfab50868787abc282152;hpb=cec485bd62f73c6c1da40855b24190013b3b469d;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/events/point.cpp b/dali/integration-api/events/point.cpp old mode 100644 new mode 100755 index 19b44b0..7b52bc3 --- a/dali/integration-api/events/point.cpp +++ b/dali/integration-api/events/point.cpp @@ -17,6 +17,7 @@ // CLASS HEADER #include +#include namespace Dali { @@ -31,7 +32,8 @@ Point::Point() mDeviceClass( Device::Class::NONE ), mDeviceSubclass( Device::Subclass::NONE ), mPressure( 1.0f ), - mRadius( 0.0f ) + mRadius( 0.0f ), + mMouseButton( MouseButton::INVALID ) { } @@ -42,7 +44,8 @@ Point::Point( const TouchPoint& touchPoint ) mDeviceClass( Device::Class::NONE ), mDeviceSubclass( Device::Subclass::NONE ), mPressure( 1.0f ), - mRadius( 0.0f ) + mRadius( 0.0f ), + mMouseButton( MouseButton::INVALID ) { } @@ -166,6 +169,17 @@ 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