How to detect orientation changed

Hello,

I was wondering if cocos2d-x implements any event notification system for detecting when the user has rotated the device, and the orientation has changed. Something similar to the UIDeviceOrientationDidChangeNotification event used in iOS, via the NSNotificationCenter. Or do I have to manually handle the android OrientationEventListener’s callback in java, and push it into the native code?

Thanks,
Isaac

Yes, you should do it by yourself. Because it is platform specific, not a feather of cocos2d-x. It is just a graphics engine.