X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Ftouch-data-impl.cpp;h=481407a074c01a6677f3efccfb22a6b7f9e872c5;hb=f329cb924a9525c4e268872c993d66fbec822b97;hp=a041c82fc20ae97d8a05ab36e15e4d9914830de9;hpb=3d64028b759662e0f0d6aa159755066a3b83a281;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/events/touch-data-impl.cpp b/dali/internal/event/events/touch-data-impl.cpp old mode 100644 new mode 100755 index a041c82..481407a --- a/dali/internal/event/events/touch-data-impl.cpp +++ b/dali/internal/event/events/touch-data-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 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. @@ -159,6 +159,33 @@ void TouchData::AddPoint( const Integration::Point& point ) mPoints.push_back( point ); } +Device::Class::Type TouchData::GetDeviceClass( std::size_t point ) const +{ + if( point < mPoints.size() ) + { + return mPoints[ point ].GetDeviceClass(); + } + return Device::Class::NONE; +} + +Device::Subclass::Type TouchData::GetDeviceSubclass( std::size_t point ) const +{ + if( point < mPoints.size() ) + { + return mPoints[ point ].GetDeviceSubclass(); + } + return Device::Subclass::NONE; +} + +MouseButton::Type TouchData::GetMouseButton( std::size_t point ) const +{ + if( point < mPoints.size() ) + { + return mPoints[ point ].GetMouseButton(); + } + return MouseButton::INVALID; +} + } // namsespace Internal } // namespace Dali