window.Add( textLabel );
// Respond to a touch anywhere on the window
- window.GetRootLayer().TouchSignal().Connect( this, &HelloWorldController::OnTouch );
+ window.GetRootLayer().TouchedSignal().Connect( this, &HelloWorldController::OnTouch );
// Respond to key events
window.KeyEventSignal().Connect( this, &HelloWorldController::OnKeyEvent );
void OnKeyEvent( const KeyEvent& event )
{
- if( event.GetState() == KeyEvent::Down )
+ if( event.GetState() == KeyEvent::DOWN )
{
if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) )
{