PocketMatrix forums

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

Key down event

Hi all.

I've been searching the forum for my problem, but I haven't found anything on it so here goes.

On the PPC, I receive a keydown after the up/down/left/right buttons are pressed with the key number of 0x84.

I have no clue why this happens, and it's only present on the PocketPC version.

I just don't respond to that code, but I wanted to know what it was.

Thanks!

--Eric
Something like that happens on my Dell Axim for anything but the arrow keys.

Somehow it returns a 91 first which has really messed up my keybinding code. It works on the desktop just fine. What I really cant figure out is how the statement:

if(GDkeylist.keyA==dwKey)

will work, but if i do this:

dwTempKeyA=dwKey it sets dwTempKeyA to 91 which is an incorrect value.
I've heard similar reports on other devices as well. Best to just test against the keylist and ignore the other values.
I would still like to be able to bind the keys that are not automatically assigned to the keylist. I tried just ignoring 91 but I am not sure if this is standard on all devices that act this way.
InexorableTash · 18 Sep 2003, 20:41 UTC
DillRye wrote:
What I really cant figure out is how the statement:

if(GDkeylist.keyA==dwKey)

will work, but if i do this:

dwTempKeyA=dwKey it sets dwTempKeyA to 91 which is an incorrect value.


The if() statement simply doesn't match - odds are that you are getting an 0x91 but your method just ignores it, whereas the assignment statement isn't ignoring anything.

Breakpoints are your friend.
InexorableTash wrote:
The if() statement simply doesn't match - odds are that you are getting an 0x91 but your method just ignores it, whereas the assignment statement isn't ignoring anything.

Breakpoints are your friend.


Those are not pulled from any code, I ment them as sort of a C++/psuedo code thing. What I was getting at was the GapiDraw OnButtonDown(dwKey) will properly match up the dwKey with the keylist, yet the same value doesn't get set to a temporary DWORD.

I'm guessing that it just goes through they keydown twice and doesn't match up the 91 to anything.
InexorableTash · 19 Sep 2003, 01:07 UTC
Exactly - add an if(dwKey==0x91) and I'm sure that case will be hit. Stick a breakpoint at the top of the method and it should be hit twice.