Original Post
I test keyboard input in the WndProc funtion like the following:
case WM_KEYDOWN: // Is A Key Being Held Down?
{
Keys[wParam] = true; // If So, Mark It As TRUE
return 0; // Jump Back
}
case WM_KEYUP: // Has A Key Been Released?
{
Keys[wParam] = false; // If So, Mark It As FALSE
return 0; // Jump Back
}
And in the main function I check for certain keys ever frame.But this doesn''t seem to be sensitive enough.For instance
when the user presses the PAUSE key I want to pause the game.But not every time it happens.