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

PocketHAL/PocketFrog Orientation


PocketHAL/PocketFrog Orientation

Postby EvilMaio » Oct 20, 2006 @ 9:30am

User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby fast_rx » Oct 21, 2006 @ 1:43am

Yes, m_config.orientation is independent of wm2003's mode. Should be the same for wm5.
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby EvilMaio » Oct 21, 2006 @ 7:22pm

Thanks for your answer ;)

So can you also confirm that pocketfrog internal remapping routines (for dpad arrows and stylus) cant't work when pocketpc is in landscape mode because they always assume that device is in standard portrait mode?

I noticed that when i start a pocketfrog portrait application in a landscape pocketpc, stylus are wrong mapped.
:twisted:
I'm using last pocketfrog 0.8.1 with last pockethal 0.7.7b (or 0.7.7c can't remember :D)
User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby fast_rx » Oct 21, 2006 @ 11:03pm

I checked again, with stylus and buttons...

Image is portrait, stylus is portrait and correct, but buttons are rotated (incorrect).

Seems different from what you say. I may have modified PFrog at some point. Don't remember at the moment - I'll have to look at the code when I get a chance.
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby EvilMaio » Oct 21, 2006 @ 11:59pm

Please let me know something when you have some time to check that,
i'm going to kill my brain in order to make it work with all screen rotations :evil:
User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby EvilMaio » Oct 22, 2006 @ 12:01pm

User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby fast_rx » Oct 22, 2006 @ 4:07pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby EvilMaio » Oct 22, 2006 @ 4:28pm

User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby fast_rx » Oct 22, 2006 @ 6:51pm

Maybe it's the device you're using? Or the version I've got?

I'm using PHal 0.7.7c (I think) with an axim X30.

Seems to me that it would be a function of PHal to give you the buttons correctly... via the
PHAL::GetKeyList( &m_keys, m_config.orientation )

Just to make sure we're clear:
*your programs correctly handle the buttons but not the stylus.
*My programs are correct with stylus but not buttons.


Should I post a checkout program to see if it's the same on your device?
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby EvilMaio » Oct 22, 2006 @ 7:00pm

Yes please if you post a test program, this would be great!


This was the situation before i modified pocketfrog:

Actually, with latest pocketfrog 0.8.1 (no patches) and latest pockethal 0.7.7 the game gives always wrong mapped stylus (and buttons) when pocketpc isn't in portrait default mode.

If i try a demo pockethal application with m_config.orient = normal/90cw/90ccw/180 on a portrait pocketpc, the pocketfrog correctly remap buttons and stylus.

I tried it on my Asus MyPal A636N (this is my first and unique wm5 device at the moment :( )
User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby fast_rx » Oct 22, 2006 @ 11:31pm

Here's a test program...

Reports the status of dpad and stylus. You can change the PFrog orientation, but it requires a restart...

On my x30, the only issue is the dpad when started in wm2003 portrait mode.
Attachments
ButtonTest.zip
Button Test Program
(54.56 KiB) Downloaded 1004 times
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby EvilMaio » Oct 23, 2006 @ 12:23am

Wow! Stylus works well with every pocketpc/pockethal combination with your sample! 8O
I'll implement your patch on my pocketfrog and will recheck all again :cry:
User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby fast_rx » Oct 23, 2006 @ 1:44am

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby EvilMaio » Oct 23, 2006 @ 8:40am

User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby hrissan » Mar 10, 2007 @ 2:47pm

Just for information, on Fujitsu Siemens PocketLoox 720 the Button Test demo works right for stylus, but does not work right for buttons. Or may be I do not understand how it should work. :)

In landscape, when the "up" button is pressed (which points to the screen), the Button Demo reports "right".

On the other way, It seems logical, because when I hold device in landscape mode, this button points to the right...

So, what the demo should tell us in landscape mode, when the "up" button is pressed? (which points to screen)
hrissan
pm Member
 
Posts: 30
Joined: Mar 10, 2007 @ 1:38pm


Next

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