mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Add namespace MiniEngine::EventSystem
This commit is contained in:
parent
d266d1e128
commit
b9daea0f25
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user