Geolocation for cocos2d-x

Geolocation for cocos2d-x


pushed some code there:


Looks cool, I think this will have it’s place in one of our future projects :wink:


Can someone please show me how to get/call the latitude and longitude values in HelloWorld.cpp? I am using Cocos2d-X 3.14.1 and I think I have made the right changes to what is deprecated.

void CCCoreLocation::getLocation(CCObject* pTarget, cocos2d::SEL_CallFuncND pSelector)


void getLocation( cocos2d::Ref* pTarget, cocos2d::SEL_CallFuncND pSelector );

And also some other things that had CC prefix. The code is building and running without errors, but I can’t figure out how to get the location values in HelloWorld.cpp.