I want a buttons with the following characteristics:
- A callback shall be called when the button is pressed
- Another callback, triggering the actual event, shall be called when the button is released (if the button was pressed in a correct manner).
I tried to do this with a CCHoldableMenuItemSprite that I found on the net, but now I realize that I cant provide the normal callback selector. Only two blocks, one that is triggered when the button is pressed, and another that is triggered when the button is released, but also when the finger glides off the button (Sic!).
If someone would take a minute to guide me in the right direction I would be more than happy. I really don't need the full CCMenu functionality (alignments etc), so in my attempts I just added one CCHoldableMenuItemSprite to a CCMenu and made that ccMenu an attribute of a Button class that inherited from CCNode. Maybe there's a better way. Tell me how you would do it. I'm tired, and have lost time :/