Add GetMouseButton to identify right/left mouse button click
[platform/core/uifw/dali-core.git] / dali / public-api / events / touch-data.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 215ae67..54d9a5e
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -102,6 +102,21 @@ Degree TouchData::GetAngle( std::size_t point ) const
   return GetImplementation( *this ).GetAngle( point );
 }
 
+Device::Class::Type TouchData::GetDeviceClass( std::size_t point ) const
+{
+  return GetImplementation( *this ).GetDeviceClass( point );
+}
+
+Device::Subclass::Type TouchData::GetDeviceSubclass( std::size_t point ) const
+{
+  return GetImplementation( *this ).GetDeviceSubclass( point );
+}
+
+MouseButton::Type TouchData::GetMouseButton( std::size_t point ) const
+{
+  return GetImplementation( *this ).GetMouseButton( point );
+}
+
 TouchData::TouchData( Internal::TouchData* internal )
 : BaseHandle( internal )
 {