I am relatively new to cocos2d-x.
I want to detect when touch is just pressed once and when a touch is pressed for certain period of time.
I can detect touch simply by onTouchBegan(.,.) method but I want to differentiate between a single touch and when a touch is in pressed state.
Is there any built in method in cocos2d-x or any method that can solve my problem.