Started implementation of events for InputSystem and SoundSystem
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#ifndef Event_KeyDown_h__
|
||||
#define Event_KeyDown_h__
|
||||
|
||||
#include "EventBroker.h"
|
||||
|
||||
namespace Events
|
||||
{
|
||||
|
||||
struct KeyDown : Event
|
||||
{
|
||||
int KeyCode;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // Event_KeyDown_h__
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef Event_KeyUp_h__
|
||||
#define Event_KeyUp_h__
|
||||
|
||||
#include "EventBroker.h"
|
||||
|
||||
namespace Events
|
||||
{
|
||||
|
||||
struct KeyUp : Event
|
||||
{
|
||||
int KeyCode;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // Event_KeyUp_h__
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef Event_PlaySound_h__
|
||||
#define Event_PlaySound_h__
|
||||
|
||||
#include "EventBroker.h"
|
||||
|
||||
namespace Events
|
||||
{
|
||||
|
||||
struct PlaySound : Event
|
||||
{
|
||||
EntityID Emitter;
|
||||
std::string Resource;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // Event_PlaySound_h__
|
||||
Reference in New Issue
Block a user