Fixed a Playsound event logic. Temporarily

This commit is contained in:
Stiffly
2014-05-26 21:43:08 +02:00
parent e3e0d549f5
commit f4cd50b741
3 changed files with 10 additions and 0 deletions
+8
View File
@@ -42,6 +42,14 @@ void InputManager::Update(double dt)
}
}
if(m_CurrentKeyState[GLFW_KEY_BACKSPACE])
{
Events::PlaySound e;
e.Resource = "Sounds/WUB.mp3";
e.Emitter = 2;
EventBroker->Publish(e);
}
// Mouse buttons
for (int i = 0; i <= GLFW_MOUSE_BUTTON_LAST; ++i)
{