I'm currently seeing a problem where if I use SetOrientationAllowed to specify only portrait mode like so
SetOrientationAllowed(1, 1, 0, 0)
I can only rotate the app to be in portrait mode with the device the correct way up. Turning it upside down does not cause the app to rotate. Interestingly if I apply this command whilst the phone is upside down, it does not force the app out of that orientation, but then if I right the phone and then turn it upside down again, it can no longer enter that orientation. I've only been able to try this on my own phone, so I don't know if it's an AppGameKit problem or something strange about my phone. Could anyone else try this and see if they're getting the same problem? I also tried it on my iPad but the problem doesn't exist there. Here is the full code I was using to test for the problem.
SetVirtualResolution(100, 100)
AddVirtualButton(1, 25, 25, 10)
SetVirtualButtonText(1, "Rotate")
AddVirtualButton(2, 75, 25, 10)
SetVirtualButtonText(2, "Portrait")
AddVirtualButton(3, 25, 75, 10)
SetVirtualButtonText(3, "Landscape")
AddVirtualButton(4, 75, 75, 10)
SetVirtualButtonText(4, "Exit")
SetOrientationAllowed(1, 1, 1, 1)
do
if GetVirtualButtonReleased(1)
SetOrientationAllowed(1, 1, 1, 1)
endif
if GetVirtualButtonReleased(2)
SetOrientationAllowed(1, 1, 0, 0)
endif
if GetVirtualButtonReleased(3)
SetOrientationAllowed(0, 0, 1, 1)
endif
if GetVirtualButtonReleased(4)
end
endif
Print(Str(ScreenFPS()))
Sync()
loop