PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PocketHAL 1.0.3 Released

PocketHAL 1.0.3 is available.

- Nailed down orientation issues with input
- Speeded up initialization on WM2003 SE devices
- More details inside the readme.

You can download PocketHAL here: http://www.droneship.com/downloads.html

Donators can obtain the registered copy (without the logo/banner) by e-mailing us.
Oh I was SO hoping you would nail down the button/orientation issue.

You da man!
Dear Kzinti!
You promised GetShellOrientation() and possibly GetShellResolution() which work correctly on "weird" devices...

Without that functions we cannot get behavior we need - start in the same orientation as shell and then follow it when it changes.

Or start always in portrait (or landscape, depending on product) and ignore shell rotations...
The function GetShellOrientation() is actually there, I just forgot to add it to the header file.

Open PocketHAL.h and add the following inside the PHAL namespace:

Code:

#if defined(PHAL_PLATFORM_WCE)
/// Get the current shell orientation
Orientation GetShellOrientation();
#endif


This will work properly on all devices, including the Morotola Q and pre-WM2003 SE devices.

I've never heard of GetShellResolution(), but you can use GetSystemMetrics() with SM_CXSCREEN and SM_CYSCREEN for that.
smachado · 14 Nov 2007, 22:17 UTC — 1/4 screen on the x51v
I detected a problem running the new PHAL on x51v. It had the stylus problem in the PHAL 0 7 but it emulated for the 640x480 on x51v. The stylus problem got solved in the PHAL 1 0 but now (with no code changes, in my project) it display in a 1/4 screen on the x51v.
smachado: just to make sure I understand your problem correctly, are you saying that:

1) The display is 480x640 but the stylus input is 240x320

or:

2) The display is rendering at 240x320, using 25% of the actual screen and the stylus input is 480x680

or:

3) Something else?

I will test 1.0.3 on my Axim x50v and see if I can find a problem.

Also, are you using the device in emulation mode (240x320) or hi-res DPI aware (with the CEUX resource, 480x640)?
Kzinti hi

display 480x640 on x51v

with 0.7 it renders ok (100%)
with 1.0.3 it renders on 25%

With both PHAL Builds:
No resources on the project.
Compiled for WM5, so the subsystem > 4.20

I'll try changing the proj options for Pocket PC 2003 (ARM) (subsystem 4.20) and test, i'll post tomorrow.
Dear Kzinti!

I have the problem running on Samsung Blackjack!

I set orientation to PHAL::GetShellOrientation() and I expect it to run in Normal orientation 320x240...

But it runs rotated (in 240x320), I have checked and found that PHAL::GetShellOrientation() returns ORIENTATION_ROTATE90CCW...

So GetShellOrientation works wrong on Samsung Blackjack... Or I do not understand something?
GetShellOrientation() should return ORIENTATION_NORMAL in 320x240 mode on the Blackjack.

Initializing PocketHAL with ORIENTATION_NORMAL should keep PocketHAL in 320x240.

So is the problem with GetShellOrientation() (that doesn't return ORIENTATION_NORMAL) or initializing PocketHAL with ORIENTATION_NORMAL? Can you narrow it down for me?
Kzinti Hi !

i fixed my problem with x51v and the emulation mode

i lowered the subsystem to 4.20 on my project's linker options:
/subsystem:windowsce,4.20 /machine:THUMB

works fine with PHAL 1.0
It's great you found a workaround. I never tested with subsytem > 4.20. I consider this a bug and will fix it.
I have done some testing with my Axim x50 and I can't reproduce your problem:

1) If I leave subsystem <= 4.20, I get a 240x320 screen
2) If I use subsystem = 5.00, I get a 480x640 screen

This behaviour is correct.

I have also verified that the input is on the right scale in each case (it is).
I thought I was clear enough...

PHAL::GetShellOrientation() returns ORIENTATION_ROTATE90CCW on Samsung Blackjack :(.
hrissan wrote:I thought I was clear enough...

PHAL::GetShellOrientation() returns ORIENTATION_ROTATE90CCW on Samsung Blackjack :(.


I think he was replying to smachado's Axim problem.

Dan East
hrissan: sorry, you were clear and I didn't read your post properly. It sounds like the device has the same problem as the Motorola Q with reporting shell orientation. Please try the attached lib and let me know if this fixes your problem.

The attached lib also has logging enabled (it will create a log file in the root of the filesystem).

smachado: if you are still around, can you try this version with subsystem=windowsce,5.0 and send me / post the log? Thanks!
Attachments:
PocketHAL_ARM.zip (65 KB)
This one correctly returns ORIENTATION_NORMAL on Samsung Blackjack. Nice.
Great to hear! I will put this fix in the next release.
Anyone has a Samsung i760 to do some testing? Apparently there is a problem with GETRAWFRAMEBUFFER when the device is in landscape mode. I would like confirmation and address the problem in PocketHAL.
Hi Kzinti,

sorry but the test was ran by a friend, i dont have an x51.

I'll try to make him do some testing and post some results ,ok ?!
That would be great!
Dear Kzinti!
Is it difficult to release a new version with correct Blackjack orientation support?
There is several millions black jacks around waiting for us...
I am working on fixing multiple problems at the same time. Releasing a new version for each fix does indeed take some considerable time.

I hope to be able to release something by Wednesday night.
Thank you Kzinti for your hard work. Please excuse me for reminding. I know quite well that each release costs much time so it makes sense to do as few of them as possible. :)
Check your email. I sent you 1.0.4 with the ".zi" extension.