I've run into a problem with my menu, with the keyboard input, what it should do:
after every 200ms process a pressed key,
this is what i've got..
...
while(1)
{
CheckKeys()
if((timeGetTime()-dwOldTime)>200)
{
dwOldTime = timeGetTime();
bVK_DOWN = false;
}
}
void CheckKeys()
{
if(KEY_DOWN(VK_DOWN)&&!bVK_DOWN)
{
bVK_DOWN = true;
BlitShit();
}
}
with this approach the menu (that's what im using it for) is very buggy, sometimes it registers a pressed key and does what it's supposed to, but often it doesnt...
------------------
Drago







