Beispiel #1
0
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;
}
Beispiel #3
0
void CCControlSlider::ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent)
{
    CCPoint location = locationFromTouch(pTouch);
    sliderMoved(location);
}
void ControlSlider::onTouchMoved(Touch *pTouch, Event *pEvent)
{
    Vec2 location = locationFromTouch(pTouch);
    sliderMoved(location);
}
void ControlSlider::ccTouchMoved(Touch *pTouch, Event *pEvent)
{
    Point location = locationFromTouch(pTouch);
    sliderMoved(location);
}