From 943cb0def024a21a308e340fc1a0007de15d01a5 Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Sat, 1 Jul 2017 15:58:34 +0800 Subject: [PATCH] Event handling are now under MiniEngine namespace --- MiniEngine_Event.cpp | 5 +++++ MiniEngine_Event.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/MiniEngine_Event.cpp b/MiniEngine_Event.cpp index d3e8720..14bd876 100644 --- a/MiniEngine_Event.cpp +++ b/MiniEngine_Event.cpp @@ -1,5 +1,8 @@ #include "MiniEngine_Event.h" +namespace MiniEngine +{ + int PollEvent(Event& refEvent) { return SDL_PollEvent(&refEvent); @@ -279,3 +282,5 @@ void LooperWithTime::run() } } } + +}/// End of namespace MiniEngine diff --git a/MiniEngine_Event.h b/MiniEngine_Event.h index b3c5ed4..8b0c8fb 100644 --- a/MiniEngine_Event.h +++ b/MiniEngine_Event.h @@ -4,6 +4,9 @@ #include #include +namespace MiniEngine +{ + typedef SDL_Event Event; typedef decltype(Event::type) _SDLEventType_; @@ -97,3 +100,5 @@ public: protected: int _timeout_ms; }; + +}/// End of namespace MiniEngine