I'm a bit stuck with trying to support landscape mode in our app. I've tried adding the following code:
local orientation = application:getOrientation()
stage:addEventListener(Event.ENTER_FRAME,function()
local neworientation = application:getDeviceOrientation()
if neworientation ~= orientation then
print(neworientation)
orientation = neworientation
end
end)
However, on my iOS Gideros Player, this only ever prints 'portrait' or 'portraitUpsideDown', even though all rotations modes are enabled through the XCode project. On android, the value does not ever seem to change at all.
What am I doing wrong?
Comments
But what you can try to do is to go to the
ViewController.mm and change - (NSUInteger)supportedInterfaceOrientations method to provide all orientation modes:
http://developer.android.com/guide/topics/manifest/activity-element.html#screen