PocketMatrix forums

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

Keyboard Query

Hi,

Am I right in thinking that the key codes for the Application Launch keys differ from PPC to PPC?

If they do then does the struct GDKEYLIST hold the correct values so that an app will run on different PPC's, with particular reference to an Axim X5?


TIA
Yes, that's correct.
The Axim exhibits some interesting behavior when a button or the D-Pad is pressed.

When a button is pressed, it has two callbacks, one with the button value (193-196) and the value 91. When the D-Pad is pressed, it also has two callbacks, one with the direction value (37-40) and the value 132.

I haven't been able to determine if this is common to all PPCs, or just the Axim. One response I received said it exists on iPaqs as well, but I don't know what values it returns.

In my key-remapping function, I had to make the program ignore values of 91 or 132, but I don't know if that breaks it for other devices.
Presto: According to the book I have the value 91 (5B) relates to the left window key VK_LWIN (Presumably would function like some form of shortcut on a different build?). The book also states that values 193 (C1) - 218 (DA) are reserved for application launch keys, though presumably OEM makes there own choice of what to use. The value 132 (84) appears to relate to VK_F21 ??
The d-pad codes quoted for the axim seem to exist in an undefined range (3A - 40) and not the usual (25 - 28), I notice that my book shows values (30 - 39 or VK_0 - VK_9) as preceding the d-pad keys, would this be thinking be somewhat like the cursor keys that appear on my numeric keypad on my PC and not the block that stand alone?

BTW the book is "Programming WindowsCE 2nd Edition"

I was fiddling with the Anigma sample and popped the win proc function into the minimal sample and the have the same 84 and 5B values returned before a value in the range of C1 - DA appears. If I keep my finger on the key then the value mysteriously changes - Is this the key repeat? and then when I release it the value is different to the one when I just do a quick press, why?