Dan East wrote:
I've been very pleased with PocketHAL, but I have some suggestions.
Thanks for your feedback Dan, it is appreciated.
Dan East wrote:
PocketHAL translates input based on the buffer orientation, however I feel the two are not related. So I request an option to turn off any key /stylus translation in PocketHAL. (...) Being that it is a 3D engine it is much easier to provide that flexibility than for a raster based engine.
Yes, I can see how all this is not desirable in a 3D engine. In fact, I've had this request made by a few people. I will make sure that PocketHAL allows you to disable input translation and that you can select the "native" orientation.
Dan East wrote:
PocketHAL should be able to report whether or not it has hardware optimizations for the current device.
I was thinking about letting the application enumerate the different drivers available and select one of it's choice. By default, the fastest one would be selected. This functionality already exists, it is just not exposed.
Dan East wrote:
PocketHAL should report the optimimum orientation to be used for the current device.
Again, this is highly desirable for 3D rendering. It will be included.
Dan East wrote:
Finally, I assume that PocketHAL cannot actively detect the device's video controller and use the appropriate routines
This is not the case. PocketHAL properly detects the video controller in use and automatically enable optimizations for it. This means that future devices that uses known video controller will be automatically optimized. There is only one exception and that is the iPAQ 3800 (I'm sure you know about it's display being mounted upside-down).
I am thinking about changing the initialization process to something more Direct3D-like. The reason for this is that I would like to support other devices then PocketPC. I am unsure if it is desirable to have different orientations on a SmartPhone for example. There is also the issue of having really different resolutions on different type of devices. Finally, there is new Pocket PCs coming out that can support multiple resolutions.
Because of all this, I was thinking about letting the application enumerate available resolutions and pick one. So for example, an iPAQ 3600 would return: (240x320) and (320x240). I am unsure about upside-down modes. Should they be reported as (-240x-320) and (-320x-240) or should I use flags? With flags, I could have:
FLAG_UPSIDEDOWN --> Flip 180 degrees
FLAG_NATIVE --> Native mode, optimal for 3D
Thing is I am not a big fan of enumerations, but I don't see any other way to report different resolutions through a generic interface. When I say enumeration, I don't necessarely mean a callback mechanism as in D3D, just a way to retrieve the available resolutions and select one.
Let me know what you think!
Thierry