Input events moved from InputSystem to new InputManager

This commit is contained in:
2014-05-05 07:16:45 +02:00
parent 330a212830
commit 5e7537b903
12 changed files with 236 additions and 103 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef Event_KeyDown_h__
#define Event_KeyDown_h__
#ifndef Events_KeyDown_h__
#define Events_KeyDown_h__
#include "EventBroker.h"
@@ -13,4 +13,4 @@ struct KeyDown : Event
}
#endif // Event_KeyDown_h__
#endif // Events_KeyDown_h__
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef Event_KeyUp_h__
#define Event_KeyUp_h__
#ifndef Events_KeyUp_h__
#define Events_KeyUp_h__
#include "EventBroker.h"
@@ -13,4 +13,4 @@ struct KeyUp : Event
}
#endif // Event_KeyUp_h__
#endif // Events_KeyUp_h__
+17
View File
@@ -0,0 +1,17 @@
#ifndef Events_MouseMove_h__
#define Events_MouseMove_h__
#include "EventBroker.h"
namespace Events
{
struct MouseMove : Event
{
double X, Y;
double DeltaX, DeltaY;
};
}
#endif // Events_MouseMove_h__
+16
View File
@@ -0,0 +1,16 @@
#ifndef Events_MousePress_h__
#define Events_MousePress_h__
#include "EventBroker.h"
namespace Events
{
struct MousePress : Event
{
int Button;
};
}
#endif // Events_MousePress_h__
+16
View File
@@ -0,0 +1,16 @@
#ifndef Events_MouseRelease_h__
#define Events_MouseRelease_h__
#include "EventBroker.h"
namespace Events
{
struct MouseRelease : Event
{
int Button;
};
}
#endif // Events_MouseRelease_h__