Changes after TouchedSignal changes
[platform/core/uifw/dali-demo.git] / examples / tilt / tilt-example.cpp
index 06bf64e..d9dd48b 100644 (file)
@@ -56,7 +56,7 @@ public:
     window.Add( mTextLabel );
 
     // Respond to a click anywhere on the window
-    window.GetRootLayer().TouchSignal().Connect( this, &TiltController::OnTouch );
+    window.GetRootLayer().TouchedSignal().Connect( this, &TiltController::OnTouch );
 
     CreateSensor();
 
@@ -74,7 +74,7 @@ public:
     }
   }
 
-  bool OnTouch( Actor actor, const TouchData& touch )
+  bool OnTouch( Actor actor, const TouchEvent& touch )
   {
     // quit the application
     mApplication.Quit();
@@ -97,7 +97,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 ) )
       {