PocketMatrix forums

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

3800 betatester needed

I need someone with a 3800 series iPaq to test Crystal Balls for me. ONLY 3800 dudes need to apply. The game works, but I want to make sure the new 3800 code also works. :) Send me an e-mail at jaccobikker@hotmail.com .
If you cant find 3800 arm betatesters...one more mips cannot hurt ;-D
Come on man, I think it's completely clear from my post that I JUST want to test the 3800 specific code. :) The rest of the game is stable. There are some things that could have been better, but I am aware of these; that doesn't require betatesting. So: Just 3800 testers. :)
Phantom,

I sent you an email.  I have a 3850 and can help you out if you still need it.
The new 3800 code works. I will release the code for EasyCE ASAP. No more worries about 3800 performance if you're using EasyCE. :) I'll also need to update The Nutcracker. :)
Care to share with the rest of the dev community what the button problems are and how to deal with them?
Digby,

The button problem is not fixed; I'm still looking for a solution. The problem is like this: GAPI can detect button presses for you, even if a button is pressed that is not in 'the list': GAPI only recognizes the directional buttons and two other buttons by itself. The other keys can be read, by polling events; when a button down occurs, you can simply take note of the corresponding button code and use that from then on. That's what The Nutcracker does during the button config sequence: It shows the function that it wants you to assign a key to, then it waits for any button to be pressed, and the button value of the first button pressed is recorded.

There are two problems with this approach: First, the new Jornada's fire TWO key codes when you press a button. This has been taken care of by accepting only one value; subsequent values are ignored for 800 milliseconds. For Jornada's, this fixes the problem completely.

But not for the iPaqs. For some reason, it is impossible to use all directional buttons. Perhaps it's just the left button (that's the first one that Crystal Balls asks for), but it looks like a more serious problem.

I'm going to try two things now: First, my code ignores button code 0, so I need to check that the left button doesn't return 0 as a key code. :)
Second, if I detect an 3800, I will simply use the keycodes that GAPI suggests for the directional buttons. That might solve the problem.

But if that doesn't work, I need a fix. I'll write a note to some other developers to see what they did to solve the problem.

- Jacco.
So you aren't using the values for the buttons returned by GAPI on the 3800?  If you are, and you're still having the problem I'd like to know about it.

GAPI will give you the keycodes for the up/down/left/right along with 4 other buttons.  Are you saying that GAPI is returning the wrong values for these buttons on the 3800?

I'm trying to find out what is broken with GAPI and these newer iPaq devices (graphics and input) and what a programmers like us would have to do to work around these problems.  Thanks for your help with investigating this.



Digby,

That's a good point, I'll try that. Right now, The Nutcracker expects you to redefine every key. The customization code is shabby apparently, so I will exclude the directional buttons if an 3800 is detected. I hope that solves the problem. If it does, I'll let you know (on the forum).

- Jacco.
<bump>

Jacco,
Whatever became of this iPaq 3800 button problem.  Is it still an issue?

Hm, it seems like I have a solution, though I'm not completely satisfied: One fellow coder suggested that I should simply not try to redefine the buttons. The buttons that come with GAPI work fine on the iPaq.

This will solve my problems for Nutcracker and Crystal Balls (haven't tried it yet, busy finding a new job), but it has two disadvantages:

1. I would like to be able to redefine buttons.
2. GAPI does return scan codes for all buttons. I would like that to work properly. Apparently, it does on the new HP's, but not on the iPaq. Perhaps I'm picky about this, but I don't like the odd GAPI behaviour on the new machines. The HP's return two scancodes in rapid succession, the iPaqs don't work at all when I use scancodes returned by GAPI. This kind of stuff makes it hard to develop for PocketPC, and I sincerely dislike that. One shouldn't have to take into account a million differences between two machines with the same OS and CPU. That simply sucks.

So that's the current state. :)

- Jacco.
Um, is this a typo?

2. GAPI does return scan codes for all buttons.


If it does return scan codes for all buttons, then what's the problem?


...the iPaqs don't work at all when I use scancodes returned by GAPI.


I want to get to the bottom of this.  Can you tell us exactly what the problem is?  I understand your frustration with having to detect all of these different devices and add workarounds for their quirks, but I want to know what the problem is with GAPI reading buttons on the 3800 devices.  We all share the same pli

Perhaps if you said something like:

My app calls GXGetDefaultKeys.  It returns the following values in the GXKeyList structure:

<list contents of structure here>

The follow messages do/don't get sent to my WndProc when I push the following buttons:

<list buttons and what happens in WndProc here>

I am in contact with someone at Microsoft regarding the latest problems and unless I can get accurate information to back up my story, they are probably going to blow me off.  Thanks for your help.



Digby,

GAPI seems to return correct codes for all buttons. HOWEVER: When you poll windows events, you get key-down and key-up events for all buttons. This happens on all devices. So my problem is not using GAPI for the buttons, actually, but using the events to read the buttons.

On older devices, I could simply poll the events. When one button was pressed, one event was generated. This allows for perfect reconfiguration of the buttons; you simply tell the user to press the button for 'up', and you wait for the next event.

It's this behaviour that has changed for 2002. On Jornada's, I don't get ONE event for a button press, but TWO. If I deliberately ignore the second, all is fine. It is however NOT exactly the same behaviour as in the previous version of the OS.

On the iPaq, things are worse. I don't know how many events are generated when you press the button, but the first event is not unique per button: Some buttons generate the same event (e.g., up and down). So I can't use this approach anymore to reconfigure my keys.

And this is a problem: Suppose one of my users wants to use a different button to go left, for whatever reason. I want to allow that.

And, GAPI allows you to read 4 buttons. There are 6: The for application buttons, the record button and the action button (pressing the keypad). So using GAPI I miss 2 of those. The Nutcracker lets you use all of them, if you wish. In fact, The Nutcracker NEEDS 5 buttons. So I have a problem if I stick to pure GAPI.

I hope it's clear now. :)

- Jacco.
Yes, I now understand.  GAPI works fine for the limited amount of buttons it supports.  You want to support ALL of the buttons on these devices and you're finding it to be difficult to do this in a common way across all Pocket PC devices.  If you try to 'guess' at what Windows message is generated when a particular button is pressed, it's very difficult because multiple messages are being sent.

Thanks for the clarification.  I'm going to see if I can raise the issue with MS next week and ask that all buttons be supported through GAPI.  If there are any other GAPI things you want changed or added let me know.