aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Input
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Input')
-rw-r--r--src/libjin/Input/je_event.h8
-rw-r--r--src/libjin/Input/je_mouse.cpp8
-rw-r--r--src/libjin/Input/je_mouse.h4
3 files changed, 10 insertions, 10 deletions
diff --git a/src/libjin/Input/je_event.h b/src/libjin/Input/je_event.h
index 2e87dc9..126d0f6 100644
--- a/src/libjin/Input/je_event.h
+++ b/src/libjin/Input/je_event.h
@@ -1,13 +1,13 @@
#ifndef __JE_EVENT_H
#define __JE_EVENT_H
#include "../core/je_configuration.h"
-#if LIBJIN_MODULES_INPUT
+#if defined(jin_input)
namespace JinEngine
{
namespace Input
{
- #if LIBJIN_INPUT_SDL
+ #if jin_input == jin_input_sdl
#include "SDL.h"
typedef SDL_Event Event;
@@ -112,10 +112,10 @@ namespace JinEngine
}
*/
- #endif // LIBJIN_INPUT_SDL
+ #endif // jin_input == jin_input_sdl
} // namespace Input
} // namespace JinEngine
-#endif // LIBJIN_MODULES_INPUT
+#endif // defined(jin_input)
#endif // __JE_EVENT_H \ No newline at end of file
diff --git a/src/libjin/Input/je_mouse.cpp b/src/libjin/Input/je_mouse.cpp
index 45fb8df..476b1a2 100644
--- a/src/libjin/Input/je_mouse.cpp
+++ b/src/libjin/Input/je_mouse.cpp
@@ -1,5 +1,5 @@
#include "../core/je_configuration.h"
-#ifdef LIBJIN_MODULES_INPUT
+#if defined(jin_input)
#include "SDL.h"
@@ -12,9 +12,9 @@ namespace JinEngine
void Mouse::getState(int* x, int* y)
{
- #ifdef LIBJIN_INPUT_SDL
+ #ifdef jin_input == jin_input_sdl
SDL_GetMouseState(x, y);
- #endif // LIBJIN_INPUT_SDL
+ #endif
}
void Mouse::setVisible(bool visible)
@@ -25,4 +25,4 @@ namespace JinEngine
} // namespace Input
} // namespace JinEngine
-#endif // LIBJIN_MODULES_INPUT \ No newline at end of file
+#endif // defined(jin_input) \ No newline at end of file
diff --git a/src/libjin/Input/je_mouse.h b/src/libjin/Input/je_mouse.h
index bd25e9c..29038ec 100644
--- a/src/libjin/Input/je_mouse.h
+++ b/src/libjin/Input/je_mouse.h
@@ -1,7 +1,7 @@
#ifndef __JE_MOUSE_H
#define __JE_MOUSE_H
#include "../core/je_configuration.h"
-#ifdef LIBJIN_MODULES_INPUT
+#if defined(jin_input)
#include "../common/je_singleton.hpp"
@@ -44,6 +44,6 @@ namespace JinEngine
} // namespace Input
} // namespace JinEngine
-#endif // LIBJIN_MODULES_INPUT
+#endif // defined(jin_input)
#endif // __JE_MOUSE_H \ No newline at end of file