Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Orientation Problems


Orientation Problems

Postby Ludimate » Jun 10, 2009 @ 9:34am

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
Ludimate
pm Member
 
Posts: 21
Joined: Jun 29, 2006 @ 8:40pm


Postby Kzinti » Jun 16, 2009 @ 8:11am

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.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Ludimate » Jun 16, 2009 @ 1:07pm

When you say "not to specify any orientation" you mean to use ORIENTATION_UNKNOWN on the call to PHAL::Create?
Ludimate
pm Member
 
Posts: 21
Joined: Jun 29, 2006 @ 8:40pm


Postby Kzinti » Jun 16, 2009 @ 4:03pm

Actually I got this wrong... Use what is returned by PHAL::GetShellOrientation().
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum