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

press and hold the keys


press and hold the keys

Postby awni » Oct 23, 2005 @ 11:26pm

awni
pm Member
 
Posts: 3
Joined: Oct 23, 2005 @ 11:10pm
Location: Jordan


Postby Presto » Oct 24, 2005 @ 1:39pm

What you need to do is set a state variable, and check it.

For example, make the following boolean array:
bool bKeyDown[8];

Add add this in KeyDown:
bKeyDown[KEY_RIGHT] = true;
// or LEFT, UP, DOWN, A, B, C, etc

And this in KeyUp:
bKeyDown[KEY_RIGHT] = false;

Then you can check the bKeyDown array.
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby awni » Oct 24, 2005 @ 7:53pm

awni
pm Member
 
Posts: 3
Joined: Oct 23, 2005 @ 11:10pm
Location: Jordan


Postby ppcStudios » Oct 25, 2005 @ 12:28pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby awni » Oct 25, 2005 @ 7:01pm

awni
pm Member
 
Posts: 3
Joined: Oct 23, 2005 @ 11:10pm
Location: Jordan


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