CCControlSlider doesn't send most of the CCControl Events

Hello

I’m trying to implement a sound effects volume slider. I receive the Value Changed event but I don’t receive all the other ( TouchUpInside, TouchUpOutside, etc).
Am I doing something wrong ?

This is a code snipped from my proect:

soundSlider->addTargetWithActionForControlEvents(this, cccontrol_selector(SettingsLayer::valueChanged), CCControlEventValueChanged); soundSlider->addTargetWithActionForControlEvents(this, cccontrol_selector(SettingsLayer::playEffect), CCControlEventTouchUpInside);//not received soundSlider->addTargetWithActionForControlEvents(this, cccontrol_selector(SettingsLayer::playEffect), CCControlEventTouchUpOutside);//not received soundSlider->addTargetWithActionForControlEvents(this, cccontrol_selector(SettingsLayer::playEffect), CCControlEventTouchCancel);//not received soundSlider->addTargetWithActionForControlEvents(this, cccontrol_selector(SettingsLayer::playEffect), CCControlEventTouchDragExit);//not received soundSlider->addTargetWithActionForControlEvents(this, cccontrol_selector(SettingsLayer::playEffect), CCControlEventTouchDragEnter);//not received soundSlider->addTargetWithActionForControlEvents(this, cccontrol_selector(SettingsLayer::playEffect), CCControlEventTouchDragInside);//not received soundSlider->addTargetWithActionForControlEvents(this, cccontrol_selector(SettingsLayer::playEffect), CCControlEventTouchDragOutside);//not received

Your code is ok but CCControlSlider currently sends only CCControlEventValueChanged so other events will not work.

And how to make event, when I touch up slider? For example: touch up the slider, and play sound effect. Sorry for my English :slight_smile: