I try to use the accelerometer in cocos2d-x 2.0.1 version.
I try to use
But when I compile the project I receive the following error:
‘class HelloWorld’ has no member named ‘setIsAccelerometerEnabled’
I don’t understand why I receive this error since my HelloWorld class extends CCLayer
this is the declaration in my HelloWorldScene.h
class HelloWorld : public cocos2d::CCLayer