Ejemplo n.º 1
0
 bool CCControlSlider::ccTouchBegan(CCTouch* touch, CCEvent* pEvent)
  {
      if (!isTouchInside(touch))
          return false;

    CCPoint location = getTouchLocationInControl(touch);
    sliderBegan(location);
    return true;
}
Ejemplo n.º 2
0
bool CCControlSlider::ccTouchBegan(CCTouch* touch, CCEvent* pEvent)
{
    if (!isTouchInside(touch) || !isEnabled() || !isVisible())
    {
        return false;
    }

    CCPoint location = locationFromTouch(touch);
    sliderBegan(location);
    return true;
}
Ejemplo n.º 3
0
bool ControlSlider::onTouchBegan(Touch* touch, Event* pEvent)
{
    if (!isTouchInside(touch) || !isEnabled() || !isVisible())
    {
        return false;
    }

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