This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Detecting Landscape Mode


Detecting Landscape Mode

Postby Jeffer » Mar 11, 2006 @ 7:37pm

Jeffer
pm Member
 
Posts: 36
Joined: Mar 11, 2006 @ 7:31pm


Postby edge » Mar 12, 2006 @ 12:50pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Jeffer » Mar 23, 2006 @ 5:49pm

I'm still having an issue here. I guess I better explain more what my problem is.

I'm trying to always force the game to run in portrait mode and that seems to work as you say setting rotation as none - for displaying anyways.

However, this doesn't seem to work for input and especially for VGA devices.

Unless the rotation is set to ROT_90DEG the input coordinates are not adjusted for the fact that the physcial device is in landscape mode.

VGA seems to be worse because if this is set:

config->resolution = ERS_REQUIREHIGHRES;

The input coordinates seem to still be coming out at 240x320 and landscape on VGA becomes useless.

Any thoughts?
Jeffer
pm Member
 
Posts: 36
Joined: Mar 11, 2006 @ 7:31pm


Postby Jeffer » Mar 23, 2006 @ 5:52pm

Oh, and in addition there doesn't seem to be a way to detect at runtime if the physical device is in landscape mode or not.

Even with ENABLE_HIRES set config->videowidth and config->videoheight report as 240 and 320 in ClassMain::OnCreate
Jeffer
pm Member
 
Posts: 36
Joined: Mar 11, 2006 @ 7:31pm


Postby edge » Mar 23, 2006 @ 8:51pm

Can you tell me which version of the Edge SDK you're currently using? I remember fixing this bug in one of our earlier releases. Which device are you testing on and which version of Windows Mobile is installed on this device?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Jeffer » Mar 24, 2006 @ 3:41am

I'm using an HP IPAQ HX4700, WINCE 4.21, VGA display and Edge 2.3

I tried to update to 2.4

I had to add DirectX 9.0c lib folder to additional libraries in my project because it was complaining about not finding ddraw.lib (2.3 didn't required that apparently) but I'm getting this error when I try to build:

edge.lib(edsp_2d.obj) : error LNK2019: unresolved external symbol DirectDrawCreate referenced in function "private: long __cdecl ClassEDisplay::OpenDirectX(struct HWND__ *,unsigned char,unsigned long,unsigned long,bool)" (?OpenDirectX@ClassEDisplay@@AAAJPAUHWND__@@EKK_N@Z)

It also looks like in 2.4 the display videowidth and videoheight class vars are now "private". How will I access the screen size now? After I get the build to work of course!
Jeffer
pm Member
 
Posts: 36
Joined: Mar 11, 2006 @ 7:31pm


Postby edge » Mar 24, 2006 @ 9:00am

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Jeffer » Mar 24, 2006 @ 9:42pm

Jeffer
pm Member
 
Posts: 36
Joined: Mar 11, 2006 @ 7:31pm


Postby edge » Mar 25, 2006 @ 6:45pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Jeffer » Mar 27, 2006 @ 9:35pm

Are you still on target for releasing 2.5 before the end of the month (with this patch)?
Jeffer
pm Member
 
Posts: 36
Joined: Mar 11, 2006 @ 7:31pm


Postby edge » Mar 28, 2006 @ 7:32am

Yes, it will probably be released on March 31.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

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

cron