Added pause button
This commit is contained in:
@@ -60,15 +60,11 @@ namespace Nuake
|
||||
bool result = state == GLFW_RELEASE;
|
||||
|
||||
// First time pressed?
|
||||
if (m_Keys.find(keycode) == m_Keys.end())
|
||||
return result;
|
||||
|
||||
if (result && m_Keys[keycode] == true)
|
||||
if (m_Keys.find(keycode) != m_Keys.end())
|
||||
{
|
||||
return true;
|
||||
return result && m_Keys[keycode] == true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
Reference in New Issue
Block a user