return false;
}
- tizen_remote_surface_event_type type = TIZEN_REMOTE_SURFACE_EVENT_TYPE_NONE;
+ screen_connector_event_type_e type = SCREEN_CONNECTOR_EVENT_TYPE_NONE;
switch( event.GetState() )
{
case Dali::KeyEvent::DOWN:
{
- type = TIZEN_REMOTE_SURFACE_EVENT_TYPE_KEY_DOWN;
+ type = SCREEN_CONNECTOR_EVENT_TYPE_KEY_DOWN;
break;
}
case Dali::KeyEvent::UP:
{
- type = TIZEN_REMOTE_SURFACE_EVENT_TYPE_KEY_UP;
+ type = SCREEN_CONNECTOR_EVENT_TYPE_KEY_UP;
break;
}
default:
}
}
- tizen_remote_surface_transfer_key_event( mRemoteSurface,
+ bool consumed = true;
+ screen_connector_toolkit_send_key_event( mWatcherHandle,
type,
event.GetKeyCode(),
+ event.GetKeyName().c_str(),
event.GetDeviceClass(),
event.GetDeviceSubclass(),
"",
- static_cast< uint32_t >( event.GetTime() )
- );
+ static_cast< uint32_t >( event.GetTime() ),
+ &consumed);
- return false;
+ DALI_LOG_RELEASE_INFO("Sync keyEvent Send, type:%d keyCode :%d, name:%s , consumed(%d) \n", type, event.GetKeyCode(), event.GetKeyName().c_str(), consumed);
+
+ return consumed;
}
void WidgetView::DeleteBuffer(wl_buffer* buffer, WidgetBuffer* widgetBuffer)