[5.0] Add GetLogicalKey API in DevelKeyEvent
[platform/core/uifw/dali-core.git] / dali / internal / event / events / key-event-impl.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 8395e20..8f0c84f
@@ -44,7 +44,9 @@ namespace Internal
 {
 
 KeyEventImpl::KeyEventImpl( KeyEvent* keyEvent )
-: mDeviceName( "" ),
+: mLogicalKey( "" ),
+  mCompose( "" ),
+  mDeviceName( "" ),
   mDeviceClass( Device::Class::NONE ),
   mDeviceSubclass( Device::Subclass::NONE )
 {
@@ -67,6 +69,8 @@ KeyEventImpl& KeyEventImpl::operator=( const KeyEventImpl& rhs )
 {
   if( this != &rhs )
   {
+    mLogicalKey = rhs.mLogicalKey;
+    mCompose = rhs.mCompose;
     mDeviceName = rhs.mDeviceName;
     mDeviceClass = rhs.mDeviceClass;
     mDeviceSubclass = rhs.mDeviceSubclass;
@@ -75,6 +79,26 @@ KeyEventImpl& KeyEventImpl::operator=( const KeyEventImpl& rhs )
   return *this;
 }
 
+std::string KeyEventImpl::GetLogicalKey() const
+{
+  return mLogicalKey;
+}
+
+void KeyEventImpl::SetLogicalKey( const std::string& logicalKey )
+{
+  mLogicalKey = logicalKey;
+}
+
+std::string KeyEventImpl::GetCompose() const
+{
+  return mCompose;
+}
+
+void KeyEventImpl::SetCompose( const std::string& compose )
+{
+  mCompose = compose;
+}
+
 std::string KeyEventImpl::GetDeviceName() const
 {
   return mDeviceName;