From 870fcdae66edc680cac55defb149e1434e865f37 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 14 Dec 2018 14:55:42 +0800 Subject: =?UTF-8?q?*=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/input/je_mouse.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 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 476b1a2..edd3cf5 100644 --- a/src/libjin/input/je_mouse.cpp +++ b/src/libjin/input/je_mouse.cpp @@ -7,22 +7,22 @@ namespace JinEngine { - namespace Input - { + namespace Input + { - void Mouse::getState(int* x, int* y) - { - #ifdef jin_input == jin_input_sdl - SDL_GetMouseState(x, y); - #endif - } + void Mouse::getState(int* x, int* y) + { + #ifdef jin_input == jin_input_sdl + SDL_GetMouseState(x, y); + #endif + } - void Mouse::setVisible(bool visible) - { - SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE); - } + void Mouse::setVisible(bool visible) + { + SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE); + } - } // namespace Input + } // namespace Input } // namespace JinEngine #endif // defined(jin_input) \ No newline at end of file -- cgit v1.1-26-g67d0