a C++ version for CCPanZoomController