X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Falpha-blending-cpu%2Falpha-blending-cpu-example.cpp;h=e4efeac9e437cff17e59af0861f2ba44f4c81204;hb=c70446e9b125ae8bb236b4cbc3fd3f8b548459cd;hp=4a80e59596d8bd1b214a40d8533fd87b1eaf3b6f;hpb=694dced621016315f10a5bdbd3f4552f5e29e380;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp b/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp index 4a80e59..e4efeac 100644 --- a/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp +++ b/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp @@ -83,15 +83,15 @@ private: window.TouchSignal().Connect( this, &ImageViewAlphaBlendApp::OnTouched ); } - void OnTouched( const TouchData& touchData ) + void OnTouched( const TouchEvent& touch ) { static bool touched = false; - if( touchData.GetState( 0 ) == PointState::DOWN ) + if( touch.GetState( 0 ) == PointState::DOWN ) { touched = true; } - if( touchData.GetState( 0 ) == PointState::UP && touched) + if( touch.GetState( 0 ) == PointState::UP && touched ) { mImageCombinationIndex++; touched = false; @@ -131,7 +131,7 @@ private: 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) ) {