Johan : Im using GD2.05 and this code doesnt return any dwKey value. Pls confirm if this is a bug or only in my code. Thanks.
- Code:
if (dwKey == keylist.vkC)
{
}
Note : vkA, vkB, vkStart works fine.
Ok are u using gd2.05 registered?
I am using the evaluation version of GD 2.05.
Denthor, make sure you're using the correct hardware button to generate the vkC event. On the iPaq 3635, the vkC button is actually the record button on the left side of the device, not one of the front buttons. Just a thought...
Thanks. I guess, coz I'm using Ipaq h1910

I'll try to avoid using that button instead since I dont have the resources to test my apps.
So does the 1910 not have a vkC?
All devices have VkA, VkB, VkC and VkStart, except the manufacturers never set a standard, to make sure they all return the same key value. What's VkC on one device might not be the same on another device. It can get quite aggravating, so if you're going to use those in a game, you really need to allow the user to remap the keys. Then it won't matter which device they're using.
StarFury wrote:
So does the 1910 not have a vkC?
Yes. The vkC is the "record" button as far as I can remember.

vkC is "record" on my iPAQ 3970. vkA is "mail" and vkB is the funny "arrow" that brings up the iPAQ software.
Here is another GapiDraw key question, but on the PC.
I tried listening for VK_SNAPSHOT to take a screenshot when the user presses PrintScreen, but I don't get that key press. Is Windows intercepting that key press, or do I have the wrong VK?
OK, a while back I monitored the keydown method and displayed the value for each of the 4 buttons across the bottom and got:
#define HARD_KEY01 193 // Far Left
#define HARD_KEY02 194 // Left
#define HARD_KEY03 195 // Right
#define HARD_KEY04 196 // Far Right
Didn't think about the "record" button on the side...
These all seem to work the same for the e740, AudioVox Maestro, iPaq 3850 and the h1910.
Richard
ML: I guess we have same button mapping problem. The solution is to let to user map buttons. I'll post another new thread for button mapping codes. Ill add this feature in my game since other device have diff buttons setup.
I'll post the new thread here.
I have screenshot working on both PPC and PC. It's just, on the PC, I thought I'd use the printscreen key. Maybe I shouldn't, if Windows does its own special magic with that key. Maybe that was a bad idea in the first place.