Original Post
Hi...
Im trying to write a function that detects when a specific key is released after it has been pressed.
I can detect when a key is pressed like:
bool KeyPressed(UINT uiID)
{
if(m_uiKeys[uiID])
return true;
return false;
}
I cant for the life of me detects when it is released in a different function...
bool KeyReleased(UINT uID)
{
// Code here...
}
Whats the best way to detect the key release. Im using C++ and the Win32 API...
Thanks!
Im trying to write a function that detects when a specific key is released after it has been pressed.
I can detect when a key is pressed like:
bool KeyPressed(UINT uiID)
{
if(m_uiKeys[uiID])
return true;
return false;
}
I cant for the life of me detects when it is released in a different function...
bool KeyReleased(UINT uID)
{
// Code here...
}
Whats the best way to detect the key release. Im using C++ and the Win32 API...
Thanks!