Page 1 of 1

Detecting Landscape Mode

PostPosted: Mar 11, 2006 @ 7:37pm
by Jeffer

PostPosted: Mar 12, 2006 @ 12:50pm
by edge

PostPosted: Mar 23, 2006 @ 5:49pm
by Jeffer
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?

PostPosted: Mar 23, 2006 @ 5:52pm
by Jeffer
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

PostPosted: Mar 23, 2006 @ 8:51pm
by edge
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?

PostPosted: Mar 24, 2006 @ 3:41am
by Jeffer
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!

PostPosted: Mar 24, 2006 @ 9:00am
by edge

PostPosted: Mar 24, 2006 @ 9:42pm
by Jeffer

PostPosted: Mar 25, 2006 @ 6:45pm
by edge

PostPosted: Mar 27, 2006 @ 9:35pm
by Jeffer
Are you still on target for releasing 2.5 before the end of the month (with this patch)?

PostPosted: Mar 28, 2006 @ 7:32am
by edge
Yes, it will probably be released on March 31.