How to increase amount on long item press of a menu item

I have one image as menu item and now i want to press it and hold it and amount should increase continuosly not only once
in my case it just get increase once

you will have to make a custom button for this scenario.

Hey,

Have you checked ccui.Button(); . Which does similar functionality.

Regards,

Thanks for the reply,

is their any function to implement this functionality or i need to do it with some touch listener, if using touch listener then what case in it?
@Gurudath

This has addTouchEventListener which provides callback. Which is similar to touch functionality.

switch (type) {
       case ccui.Widget.TOUCH_BEGAN:
                break;
        case ccui.Widget.TOUCH_MOVED:
            break;
        case ccui.Widget.TOUCH_ENDED:
            break;
        case ccui.Widget.TOUCH_CANCELED:
            break;
        default:
            break;

thanks for your reply . I will try this