Advertisement

Button Press and particle emmiter.. How?

Started by March 30, 2001 02:57 AM
0 comments, last by HellRiZZer 23 years, 10 months ago
Ok, I''ve got a particle emmitter, and I wanted to do a usual thing: when I press CTRL or space, it must emit particles with a constant number. But how do I do a keypress (true/false)? In VC++ 6.0? Any WIN API functions or WM_ cases?
bool KeyDown(DWORD vk_code)
{
return (GetAsyncKeyState(vk_code) & 0x8000) ? true : false;
}

The virtual-key codes are somewhere in msdn.
Example :
if (KeyDown(VK_ESCAPE)) ExitGame();
alexk7

This topic is closed to new replies.

Advertisement