Merge branch 'devel/master' into devel/new_vr 27/92627/1 devel/new_vr
authorTom Robinson <tom.robinson@samsung.com>
Mon, 17 Oct 2016 15:22:09 +0000 (16:22 +0100)
committerTom Robinson <tom.robinson@samsung.com>
Mon, 17 Oct 2016 15:22:09 +0000 (16:22 +0100)
Change-Id: I39b149bd3deafdaaa1f002571fc087d7a2e7e83a

1  2 
examples/blocks/blocks-example.cpp
examples/mesh-visual/mesh-visual-example.cpp
examples/tilt/tilt-example.cpp

Simple merge
@@@ -606,6 -561,6 +602,12 @@@ public
      //Update light to account for the change.
      SetLightMode();
  
++    //Change light image.
++    SetLightImage();
++
++    //Update light to account for the change.
++    SetLightMode();
++
      return true;
    }
  
@@@ -88,24 -88,24 +88,39 @@@ public
  
      mTextLabel.SetOrientation(Quaternion());
      mTextLabel.RotateBy(rollRot);
 -    mTextLabel.RotateBy(pitchRot);;
 +    mTextLabel.RotateBy(pitchRot);
 +  }
 +
 +  /**
 +   * @brief OnKeyEvent signal handler.
 +   * @param[in] event The key event information
 +   */
 +  void OnKeyEvent( const KeyEvent& event )
 +  {
 +    if( event.state == KeyEvent::Down )
 +    {
 +      if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) )
 +      {
 +        mApplication.Quit();
 +      }
 +    }
    }
  
+   /**
+    * @brief OnKeyEvent signal handler.
+    * @param[in] event The key event information
+    */
+   void OnKeyEvent( const KeyEvent& event )
+   {
+     if( event.state == KeyEvent::Down )
+     {
+       if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) )
+       {
+         mApplication.Quit();
+       }
+     }
+   }
  private:
    Application&  mApplication;
    TiltSensor mTiltSensor;