Original Post
I''ve written a function to return a key if it is pressed:
[source]
int ReturnKey()
{
for (int i = 0; i < 127; i++)
{
if (!keys && pressedKeys[i])
{
pressedKeys[i] = false;
}
}
for (int j = 0; j < 127; j++)
{
if (keys[j] && !pressedKeys[j])
{
pressedKeys[j] = true;
return j;
}
}
return -1;
}
[\source]
The one problem is, it ALWAYS return uppercase values. Is there any easier way to get user input from the keyboard? I am using it in a console, and am trying to get user input. Any suggestions?
Thanks
-+=SkyFire360