iOS + Android: How can I use multi touch ?

My controls are basicly Left, Right, Jump, Shoot

I want the player to be able to start running holding Shoot + Left/Right
and be able to jump while running holding Left/Right + Jump

With ccTouchesBegan I guess it’s possible to check if the user touches the controls and then start the action
and with ccTouchesEnded to stop all movement. BUT it only gives you one location….right?

How can I use multi touch ?

(I’m an Java/Android programmer and having a hard time with C++/Cocos2dx so some example code would be nice)

This should help:

http://www.gmtdev.com/blog/2011/12/06/multi-touch-in-cocos2d-x

thanks, gonna check it out!