From 599e0c9bf017d8fb7a8db9f925a83a0f2414b8a7 Mon Sep 17 00:00:00 2001 From: Stiffly Date: Tue, 27 May 2014 08:53:12 +0200 Subject: [PATCH] Removed temporary event publishing code for PlaySound. --- src/InputManager.cpp | 16 ++++++++-------- src/InputManager.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/InputManager.cpp b/src/InputManager.cpp index ec220ff..cb56824 100644 --- a/src/InputManager.cpp +++ b/src/InputManager.cpp @@ -42,14 +42,14 @@ void InputManager::Update(double dt) } } - if(m_CurrentKeyState[GLFW_KEY_Z]) - { - Events::PlaySound e; - e.Resource = "Sounds/WUB.mp3"; - e.Emitter = 66; - e.Loop = true; - EventBroker->Publish(e); - } +// if(m_CurrentKeyState[GLFW_KEY_Z]) //TEMP +// { +// Events::PlaySound e; +// e.Resource = "Sounds/BGM/WUB.mp3"; +// e.Emitter = 66; +// e.Loop = true; +// EventBroker->Publish(e); +// } // Mouse buttons for (int i = 0; i <= GLFW_MOUSE_BUTTON_LAST; ++i) diff --git a/src/InputManager.h b/src/InputManager.h index 3326070..e6cc259 100644 --- a/src/InputManager.h +++ b/src/InputManager.h @@ -12,7 +12,7 @@ #include "Events/LockMouse.h" #include "Events/GamepadAxis.h" #include "Events/GamepadButton.h" -#include "Events/PlaySound.h" //Temp +//#include "Events/PlaySound.h" //Temp class InputManager {