Till iOS7 accelerometer worked, now in iOS 10 same code not working.
In AccelerometerDelegateWrapper class, below function not triggered.
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
{
In Cocos2dx- 3.x its working perfect. How to fix it in Cocos2dx 2.x ? Some hit CMMotionManager is solution, how to plug it in cocos2d 2.x ?
I fixed acceleration problem by using CMMotionManager.
Inside Cocos2d files, AccelerometerDelegateWrapper.h
In AccelerometerDelegateWrapper.mm