PocketMatrix forums

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

PocketHAL 0.4 released

The fourth release of PocketHAL, the next generation library for Pocket PC game development has been released.

Get it fresh at: http://pockethal.droneship.com

PocketHAL can currently be seen as an alternative to GAPI and GAPI-based libraries. You though GAPI was the fastest way to do graphics on your Pocket PC? Think again. PocketHAL can often run twice as fast as GAPI and further optimizations are in the work.

What's new in the 0.4 build:

* This is the first Beta version!
* Added support for viewports, allowing the user to specify the update region.
* Added a PC .LIB file to allow desktop development.
great news!

what i especially like is the possibility to set a viewport. i'm gonna try out the new version soon.

i've got a question: on the pockethal page you write that pockethal can be used to access keys. since you once wrote that pockethal works completely without gapi i'd expect a function on pockethal to query the current keystate, but i can't find one...

thanks,
DANIEL
yeah, good news!
great to see the new pocketfrog power continuing to evolve and grow.
The pc development is interesting
Even if the person is not thinking about a pc port of his game, for a demo is good to have a pc version.
Since this "PC" version is a standalone library, is it possible to link to it without using MSVC - like with something a little more affordable (ie, free) like a version of gpp (MINGW).
drgoldie wrote:
i've got a question: on the pockethal page you write that pockethal can be used to access keys. since you once wrote that pockethal works completely without gapi i'd expect a function on pockethal to query the current keystate, but i can't find one...


Key codes are posted to your Window's message handler like normal (using GAPI or not). You should simply trap the WM_KEYDOWN and WM_KEYUP messages in your window proc.

What PocketHAL does is:

1) Trap all keys (same functionality as GXOpenInput);
2) Report key codes not returned by GAPI (i.e. more then just START,A,B,C).

I don't think the PocketPC supports the Win32 GetAsyncKeyState() call, but if it does, you can use that with the key codes returned by PocketHAL.

---
fast_rx wrote:
Since this "PC" version is a standalone library, is it possible to link to it without using MSVC - like with something a little more affordable (ie, free) like a version of gpp (MINGW).


The "PC" version is just there because of the overwhelming number of requests I have received.

I verified that it works with both VC6 and VS.NET 2003 (and it should work with VS.NET 2002).

I unfortunately have no idea if it will work with other compilers. If your compiler can use Microsoft's .LIB file format, then it should work as-is.

I'd rather spend my energies on more features then on supporting different compilers, as desktop development is not the goal of PocketHAL.
Sergey Chaban · 20 Nov 2003, 02:23 UTC
Since PocketHAL exports are C++ mangled names it's unfortunately not possible to use the lib with other compilers without recompilation (every compiler use its own mangling scheme).
What about using "C" linkage insted of "C++" ?

Code:

extern "C" {
void function1(int);
void function2(int);
}


The only problem is with function overloading, C does not support it
What about using "C" linkage insted of "C++" ?


Since PocketHAL uses classes for its interface it will not work to use C linkage, unless there really is an additional c interface such as microsoft did in the old DirectX versions (or do they still provide that?)...

DANIEL
Support for C (and therefore other languages) will be added soon.