Page 1 of 1

PostPosted: Fri Sep 06, 2002 3:08 pm
by FREEMAN
Hi, I am programming a game in POCKETC and I am currently using Hookhard(1); and then event(0); to identify if a hardbutton was pressed. It is working great with the only exception that I am not able to detect 2 buttons at the same time.

In other words I will like to be able to fire a misile by pressing a second button while I am moving left or right using the first button. Right now I am only able to fire a missile if I stop pressing the first button.

Does anybody knows a solution to this?

Thanks...

LF

PostPosted: Fri Sep 06, 2002 3:28 pm
by jstadolnik
The PalmOS cannot trap simultaneous events. However, you can check the state of the hard keys directly with the CheckKey() function in the PToolboxLib, and fake this out.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm