This site is no longer active and is available for archival purposes only. Registration and login is disabled.

gdkeylist and the Axim x50v


gdkeylist and the Axim x50v

Postby dan.p » Feb 14, 2005 @ 8:25pm

dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby Johan » Feb 14, 2005 @ 8:59pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby dan.p » Feb 14, 2005 @ 9:15pm

dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby fzammetti » Feb 15, 2005 @ 6:12am

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby dan.p » Feb 15, 2005 @ 7:33am

dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby dan.p » Feb 18, 2005 @ 3:15am

I think you guys confused me. :) I was under the impression that the same keys could have different keycodes on different devices (not email, etc., but in terms of key position - ie; the key all the way to the left).

But that's okay, it made me dig around the documentation. I found this:

http://msdn.microsoft.com/library/defau ... agemap.asp

I may not be able to look at the buttons in terms of email, contacts, etc., but I can look at the buttons on any device in this manner:

K1 K2 D-Pad K3 K4

Given the documentation:

K1 = 193
K2 = 194
K3 = 195
K4 = 196

The keys on any device read from left to right. I would expect GDKEYLIST vkA, vkB, etc. to coincide in the same manner:

K1 = vkA = 193
K2 = vkB = 194
K3 = vkC = 195
K4 = vkD = 196

Unfortunately it doesn't at all. Not only that, but there's no vkD for the fourth keycode. There's vkStart, but that's mapped to the button in the middle of the D-Pad.

Once you look at keys generically, you can get away without having to program an "options" screen. Arvale has done this. If you download the demo, and start playing the game, you'll notice that the keys coincide with the toolbar menu items. I = Item, K = Key:

I1 I2 I3 I4
K1 K2 K3 K4

This is exactly what I was looking for. If I am still incorrect, please correct me. :)
dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby Mapman » Feb 18, 2005 @ 4:15am

Well just to confuse things even further, be aware, on my Fujitsu Siemens Pocket LOOX 610 if you press and release the buttons quickly I receive the following double key codes:



K1 = 213 - 193
K2 = 210 - 194
K3 = 212 - 195
K4 = 209 - 196

However, when pressing and holding the buttons I get the following:



K1 = 213 - 193
K2 = 210 - 198
K3 = 212 - 195
K4 = 209 - 200

Note the changes in K2 and K4.
Mapman
pm Member
 
Posts: 13
Joined: May 4, 2004 @ 7:15am
Location: New Zealand


Postby dan.p » Feb 18, 2005 @ 6:17am

I assume the keydown would have the regular keycodes, but the keyup changes depending on how long you hold them?
dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby InexorableTash » Feb 19, 2005 @ 5:38am

FYI, the reason GapiDraw only exposes A, B, C is that the PocketPC-specific API it derives from - GAPI (Game API) provides device-independent lookup values for (you guessed it!) only 3 buttons - A, B and C.

Basically, PocketPC OEMs are able to ship a GAPI implementation with their devices and it's up to the OEM to decide what A, B and C should be for their device. Although nearly all PPCs today have the (1, 2, D-Pad, 3, 4) arrangement, my first PocketPC only had the D-Pad plus three buttons on the front of the device. Without dictating to the OEMs what hardware they had to ship, GAPI therefore must be a lowest-common-denominator sort of thing.

(What'd be nifty is some sort of abstraction that used a table in an external file which had all the known devices and key mappings, and this file could be updated. Failing that, an options screen seems like a good idea.)
User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron