Fixed a Playsound event logic. Temporarily
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#define Event_PlaySound_h__
|
#define Event_PlaySound_h__
|
||||||
|
|
||||||
#include "EventBroker.h"
|
#include "EventBroker.h"
|
||||||
|
#include "Entity.h"
|
||||||
|
|
||||||
namespace Events
|
namespace Events
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
// Mouse buttons
|
||||||
for (int i = 0; i <= GLFW_MOUSE_BUTTON_LAST; ++i)
|
for (int i = 0; i <= GLFW_MOUSE_BUTTON_LAST; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#include "Events/LockMouse.h"
|
#include "Events/LockMouse.h"
|
||||||
#include "Events/GamepadAxis.h"
|
#include "Events/GamepadAxis.h"
|
||||||
#include "Events/GamepadButton.h"
|
#include "Events/GamepadButton.h"
|
||||||
|
#include "Events/PlaySound.h" //Temp
|
||||||
|
|
||||||
class InputManager
|
class InputManager
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user