Examples: Added ability to turn off debug text.

This commit is contained in:
bkaradzic
2013-08-09 21:33:28 -07:00
parent 8f026846ff
commit d265b9b0d4
2 changed files with 9 additions and 8 deletions

View File

@@ -139,10 +139,10 @@ struct Input
if (binding->m_flags == 1)
{
if (down
&& modifiers == binding->m_modifiers)
if (down)
{
if (!m_keyboard.m_once[binding->m_key])
if (modifiers == binding->m_modifiers
&& !m_keyboard.m_once[binding->m_key])
{
binding->m_fn(binding->m_userData);
m_keyboard.m_once[binding->m_key] = true;