Пример #1
0
 bool CCControlSlider::ccTouchBegan(CCTouch* touch, CCEvent* pEvent)
  {
      if (!isTouchInside(touch))
          return false;

    CCPoint location = getTouchLocationInControl(touch);
    sliderBegan(location);
    return true;
}
Пример #2
0
bool CCControlSlider::ccTouchBegan(CCTouch* touch, CCEvent* pEvent)
{
    if (!isTouchInside(touch) || !isEnabled() || !isVisible())
    {
        return false;
    }

    CCPoint location = locationFromTouch(touch);
    sliderBegan(location);
    return true;
}
Пример #3
0
bool ControlSlider::onTouchBegan(Touch* touch, Event* pEvent)
{
    if (!isTouchInside(touch) || !isEnabled() || !isVisible())
    {
        return false;
    }

    Vec2 location = locationFromTouch(touch);
    sliderBegan(location);
    return true;
}