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?


Postby xmaster » Dec 20, 2004 @ 3:47pm

Hadoken wrote:Any news about this? I am experiencing the same problem with an HP ipaq 1940. If i compile e.g. the blit demo with evc3 it runs fine, if i do it with evc4 it compiles ok but input from the stylus is messed up (x and y coordinates are inverted, and on top of that i think x is also flipped).
This happens whenever orientation is not ORIENTATION_NORMAL.
I'm using pocketHAL 0.7.5 and pocketFrog 0.8.1


I have the same problem on my ipaq hx4700. I compiled blit demo with evc4 with last pocketfrog (0.8.1)
xmaster
 


Postby Guest » Sep 16, 2005 @ 3:40pm

There is a solution for this problem?

Thanks
Guest
 


Postby Squirrel » Jun 2, 2006 @ 5:20pm

Well, check up game.cpp in line 406:

-----------------------
#if defined(FROG_PPC)
DeviceToLogical( P );
#endif
-----------------------

DeviceToLogical() function checks orientation and corrects x and y coordinates. Thanks to
#if defined(FROG_PPC)
it wouldn't work anyway. Simpliest solution is to delete or to quote that if. Still, that would couse coordinates swaping even in XP, and that is not good/ So better try this:

-----------------------
#if defined(_WIN32_WCE)
DeviceToLogical( P );
#endif
-----------------------

ps. русский пост :lol:
Squirrel
pm Member
 
Posts: 26
Joined: Jun 2, 2006 @ 3:56pm
Location: Rus


Previous

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

cron