Hello-
The documentation seems to imply that GetDeviceHeight() and GetDeviceWidth() will return the same values regardless if I change the device from landscape to portrait, and vice-versa. Is this correct?
Whether that is true or not, I'm having trouble with these commands and my Asus tablet. In landscape mode, the device dimensions are 1024 x 552. In portrait mode, the dimensions are 600 x 976. The problem I have with the Get() commands is that even if I force landscape orientation, the portrait dimensions are returned unless the device was already in landscape mode before I launch the application.
I had thought to get around this by using this code:
// set display properties
SetOrientationAllowed( 0, 0, 1, 1 )
// Proceed only if in landscape mode
repeat
current_orientation = GetOrientation()
until current_orientation > 2
However, there is a bug there. Trying to force the device into landscape mode causes the loop to exit even if the device is not physically in that mode. So I think that Set() is interfering with the correct operation of Get(). I would expect Get() to always return the physical setup of the device, and if I want to separately confirm what orientations I *should* be using, that would be a different function.
I'm also running into trouble testing on a Windows PC when I need to check for orientations. Is there a way to detect if the code is running on a PC so I can skip such checks?
Goo Goo G'Joob!