I am trying to create a small console program that will be mostly a console pon. So right now I have this:
int main()
{
while(1)
{
clearScreen();
restThread(100);
}
return 0;
}
The only input I need to poll is if the user presses the A or D key, since the screen has been cleared. I will also need to know when the key will be released. I am also trying to make this cross platform.
so really all i need is an if (keyWasDown ('a')) {} function.
thank
source
share