Add namespace MiniEngine::EventSystem

This commit is contained in:
Kirigaya Kazuto 2017-04-25 10:15:12 +08:00
parent d266d1e128
commit b9daea0f25
2 changed files with 21 additions and 1 deletions

View File

@ -1,5 +1,11 @@
#include "MiniEngine_Event.h"
namespace MiniEngine
{
namespace EventSystem
{
namespace _MiniEngine_Internal
{
MouseButton _mousebutton_event_enum_caster(int EventInt)
@ -22,7 +28,7 @@ namespace _MiniEngine_Internal
return MouseButton::Left;
}
}
}/// End of namespace _MiniEngine_Internal
}/// End of namespace MiniEngine::EventSystem::_MiniEngine_Internal
EventBase::EventBase(SDL_Event Event)
{
@ -93,3 +99,7 @@ bool EventHandlerBase::onMouseMotion(const MouseMotionEvent& ev)
{
return false;
}
}/// End of namespace MiniEngine::EventSystem
}/// End of namespace MiniEngine

View File

@ -1,6 +1,12 @@
#pragma once
#include "MiniEngine.h"
namespace MiniEngine
{
namespace EventSystem
{
class EventBase
{
public:
@ -38,3 +44,7 @@ protected:
virtual bool onMouseUp(const MouseButtonEvent&);
virtual bool onMouseMotion(const MouseMotionEvent&);
};
}/// End of namespace MiniEngine::EventSystem
}/// End of namespace MiniEngine