ios - Kobold2D anyTouchEndedThisFrame does not get called - I could not figure out the reasons? -
- (void)update:(cctime)delta { ccdirector* director = [ccdirector shareddirector]; if (director.currentplatformisios) { kkinput* input = [kkinput sharedinput]; if ([kkinput sharedinput].anytouchbeganthisframe) {nslog(@"anytouchbeganthisframe");} if ([kkinput sharedinput].anytouchendedthisframe) {nslog(@"anytouchendedthisframe");} if ([input isanytouchonnode:self.ballred touchphase:kktouchphasebegan]){nslog(@"isanytouchonnode");} } }
anytouchendedthisframe not getting called touchbegan event not triggering isanytouchonnode. if change kktouchphasestationary/kktouchphaseany event occurring flawlessly.
i shifted cocos2d 2.0 kobold2d. great..!!
implemented cctouchesbegan/moved , ended , worked. ignored kkinput
Comments
Post a Comment