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 ) )
{
void OnKey(const KeyEvent &event)
{
- if (event.state == KeyEvent::Down)
+ if (event.GetState() == KeyEvent::Down)
{
- std::cout<<"Window key : " << event.keyCode << std::endl;
+ std::cout<<"Window key : " << event.GetKeyCode() << std::endl;
}
}
- void OnTouch(const TouchData &touch)
+ void OnTouch(const TouchEvent &touch)
{
if (touch.GetState(0) == PointState::DOWN)
{
bool OnControlKeyEvent(Toolkit::Control control, const KeyEvent &event)
{
- if (event.state == KeyEvent::Down)
+ if (event.GetState() == KeyEvent::Down)
{
- std::cout<<"Control down key : " << control.GetProperty< std::string >( Dali::Actor::Property::NAME ) << ", keyCode : " << event.keyCode << std::endl;
+ std::cout<<"Control down key : " << control.GetProperty< std::string >( Dali::Actor::Property::NAME ) << ", keyCode : " << event.GetKeyCode() << std::endl;
}
else
{
- std::cout<<"Control up key : " << control.GetProperty< std::string >( Dali::Actor::Property::NAME ) << ", keyCode : " << event.keyCode << std::endl;
+ std::cout<<"Control up key : " << control.GetProperty< std::string >( Dali::Actor::Property::NAME ) << ", keyCode : " << event.GetKeyCode() << std::endl;
}
return false;
}
- bool OnControlTouch(Actor actor, const TouchData &touch)
+ bool OnControlTouch(Actor actor, const TouchEvent &touch)
{
if (touch.GetState(0) == PointState::DOWN)
{