PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Orientation Problems

I'm trying to move from old 0.7.7 to the latest 1.0.6 and I'm seeing problems in some of the emulators, in particular the square screens from Windows Mobile 6.1, where the (square) screen is reported as ORIENTATION_ROTATE90CW, is this a known problem with the emulators?

Since 0.7.7 had some issues with the orientations, I was doing the following:
1) I get the current orientation from ChangeDisplaySettingsEx
2) I map that into a PHAL::Orientation and use that in the PHAL::Create

I've noticed the new PHAL::GetShellOrientation - but on these emulator square devices, I get different values from ChangeDisplaySettingsEx (0 degrees) and from GetShellOrientation (ROTATE90CW).
In both cases the keys and stylus don't work as they should.

Also, what's the best way to deal with this in the latest 1.0.6 - should I always call PHAL::Create with the result from GetShellOrientation? Any reason to prefer this over the orientation taken from ChangeDisplaySettingsEx?

Many thanks for any help on this, it would be great to move to the new build.

Thanks and Best Regards,

Jorge Diogo
The best way is simply not to specify any orientation and/or use what is returned by GetShellOrientation().

There is no relation between what ChangeDisplaySettingsEx() returns and what GetShellOrientation() returns.

The problem with the emulator was reported and I still have to look into it.
When you say "not to specify any orientation" you mean to use ORIENTATION_UNKNOWN on the call to PHAL::Create?
Actually I got this wrong... Use what is returned by PHAL::GetShellOrientation().