Multitouch not working Cocos2dx v3.3

  • koko82
    Likes 0

    Problem Description

    I am trying to get multitouch working I have gone through the sonar tutorial with a fine tooth comb and done exactly what it says. However, it seems that even though it logs a touch its not actually activated multitouch on my xcode. When I try to get touches->getID() its always 0, so multitouch isnt working (on the test multitouch it works and see +1-5). Is there a setting that needs to be setup on appdelegate for glview? Its almost like the vector isnt pushing back the touches. Although the code looks sound is it missing a header or setting when generated project?

  • Sonar Systems admin
    Likes 0

    What exactly do you want to do with multi touch?


    This reply has been verified.
  • koko82
    Likes 0

    Touch two sprites at the same time.


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    What do you want to do once you have touched the sprites?


    This reply has been verified.
  • koko82
    Likes 0

    Nothing at the moment all I am doing is testing multitouch is working and its not. Its not showing multiple touches!


    This reply has been verified.
  • koko82
    Likes 0

    Thanks for link its a little old now, the code its using is a different view to v3.3 is now using glview but cant find any equivilent commands..

        if(!glview) {
            glview = GLViewImpl::create("Cpp Tests");
            director->setOpenGLView(glview);
        }
    

     


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    Where is that on the website?


    This reply has been verified.
  • koko82
    Likes 0

    No its me, misreading its AppController.mm I was looking at AppDelegate. It was also nicely tucked away under Frameworks/IOS/ ! Its working now many thanks for your help !!!!!

     


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    GREAT :D


    This reply has been verified.

Login to reply