Changes after TouchedSignal changes
[platform/core/uifw/dali-demo.git] / examples / rendering-cube / rendering-cube.cpp
index 3153d04..23bf056 100644 (file)
@@ -99,7 +99,7 @@ public:
     PlayAnimation();
 
     // Respond to a click anywhere on the window
-    window.GetRootLayer().TouchSignal().Connect( this, &DrawCubeController::OnTouch );
+    window.GetRootLayer().TouchedSignal().Connect( this, &DrawCubeController::OnTouch );
 
     // Respond to key events
     window.KeyEventSignal().Connect( this, &DrawCubeController::OnKeyEvent );
@@ -120,7 +120,7 @@ public:
    */
   void OnKeyEvent( const KeyEvent& event )
   {
-    if( event.state == KeyEvent::Down )
+    if( event.GetState() == KeyEvent::DOWN )
     {
       if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) )
       {