bool CCControlSlider::ccTouchBegan(CCTouch* touch, CCEvent* pEvent) { if (!isTouchInside(touch)) return false; CCPoint location = getTouchLocationInControl(touch); sliderBegan(location); return true; }
bool CCControlSlider::ccTouchBegan(CCTouch* touch, CCEvent* pEvent) { if (!isTouchInside(touch) || !isEnabled() || !isVisible()) { return false; } CCPoint location = locationFromTouch(touch); sliderBegan(location); return true; }
bool ControlSlider::onTouchBegan(Touch* touch, Event* pEvent) { if (!isTouchInside(touch) || !isEnabled() || !isVisible()) { return false; } Vec2 location = locationFromTouch(touch); sliderBegan(location); return true; }