Page 1 of 1

press and hold the keys

PostPosted: Oct 23, 2005 @ 11:26pm
by awni

PostPosted: Oct 24, 2005 @ 1:39pm
by Presto
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.

PostPosted: Oct 24, 2005 @ 7:53pm
by awni

PostPosted: Oct 25, 2005 @ 12:28pm
by ppcStudios

PostPosted: Oct 25, 2005 @ 7:01pm
by awni