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

GAPI and virtual key code for 4th button


GAPI and virtual key code for 4th button

Postby werner » Aug 1, 2002 @ 3:15pm

Hi all,

I have a Jornada 568 that has the standard 4 buttons on the bottom of the device plus the arrow keypad. The GAPI routine GXGetDefaultKeys only returns data for vkA, vkB and vkC. Is there a standard hardware code for "vkD" or that fourth button? On my device its virtual key is 213. The others are 209, 210 and 211 and vkStart is 212.

Are these fairly standard? What are people doing to query that 4th button? I'm using GetAsyncKeyState but don't want to hardcode in 213 if it's incorrect.

Thanks for any info.

Werner Sharp
http://www.sharp-software.com
werner
pm Member
 
Posts: 7
Joined: Mar 17, 2002 @ 6:00pm
Location: Syracuse, NY


Postby BurningSheep » Aug 1, 2002 @ 5:01pm

These codes differ from device to device, I would consider letting the player assign the keys to his preferred configurations. Also there should be a list of these keycodes around here somewhere on the forum.
Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Postby Dan East » Oct 15, 2004 @ 2:03pm

I was about to start a new thread on this, until I found this thread. Anyway here's my post:

GXGetDefaultKeys only returns the values of 3 of the 4 hardware buttons on the front of a PPC (that's all the GXKeyList struct allows).

How are others determining the value of that 4th key? On the a716 it happens to be GXKeyList::vkC-1, however that doesn't hold up with the a620.

Thanks.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Kzinti » Oct 15, 2004 @ 4:35pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Dan East » Oct 15, 2004 @ 9:55pm

This is for my PSX Adapter, which does not / need not actually access the display. I'll have to take a closer look at PocketHAL.

How does PocketHAL manage this? Are these values hard-coded by device type? Or is it able to obtain the additional information from the lower level drivers that it accesses directly?

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby madfrog » Oct 18, 2004 @ 10:07am

madfrog
pm Member
 
Posts: 3
Joined: Aug 30, 2004 @ 10:27pm


Postby Dan East » Oct 18, 2004 @ 2:58pm

Last edited by Dan East on Oct 18, 2004 @ 9:57pm, edited 1 time in total.
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby mlepage » Oct 18, 2004 @ 9:16pm

I think getting key values like this should be in a small dedicated library of its own. Such a library would work with GAPI, GapiDraw, PocketHAL/Frog, etc.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Kzinti » Oct 18, 2004 @ 9:24pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Dan East » Oct 19, 2004 @ 12:37am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby mlepage » Oct 19, 2004 @ 12:56am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Kzinti » Oct 19, 2004 @ 1:11am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

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