Drag to Pan and pinch to zoom on layer

We modified a version of CCPanZoomLayer for our game, and updated it for the 3.2 release by using the event dispatcher and all touches events. We added a TMXTiledMap as a child so we could pan and zoom around our “map”. You may find some help or ideas looking at the code.

Original version for cocos2d-iPhone

Discussion regarding porting it.

Version ported to cocos2d-x