From 07770f3ad369ff47386310b731d349f7af1fe0d9 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 21 Oct 2018 16:21:16 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Input/je_mouse.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libjin/Input/je_mouse.cpp') 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 -- cgit v1.1-26-g67d0