balaam at March 14th, 2012 12:12 — #1
Is this a design decision or just something that was missed?
dualface at March 14th, 2012 21:34 — #2
SetDeviceOrientation() should be call in the AppDelegate::applicationDidFinishLaunching()
balaam at March 16th, 2012 06:37 — #3
Cool thanks. I take that as - it should never be called from Lua only from that method.
balaam at March 16th, 2012 07:44 — #4
I think I’m still missing something with this.
In cocos2dx\HelloLua\Classes\AppDelegate.cpp in the applicationDidFinishLaunching function just before return true at the end of the function I added pDirector->setDeviceOrientation(kCCDeviceOrientationPortrait).
Then I run build_native.sh from cygwin and package in ecplise but when the apk runs on the device it’s still landscape. Any idea what might be the problem?