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_keyboard.h | 12 ++++++------ src/libjin/input/je_mouse.cpp | 26 +++++++++++++------------- src/libjin/input/je_mouse.h | 18 +++++++++--------- 3 files changed, 28 insertions(+), 28 deletions(-) (limited to 'src/libjin/input') diff --git a/src/libjin/input/je_keyboard.h b/src/libjin/input/je_keyboard.h index 25cfd5d..ffaad66 100644 --- a/src/libjin/input/je_keyboard.h +++ b/src/libjin/input/je_keyboard.h @@ -3,18 +3,18 @@ namespace JinEngine { - namespace Input - { + namespace Input + { /// /// /// - class Keyboard - { + class Keyboard + { - }; + }; - } // namespace Input + } // namespace Input } // namespace JinEngine #endif // __JE_KEYBOARD_H__ 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 diff --git a/src/libjin/input/je_mouse.h b/src/libjin/input/je_mouse.h index d129a07..f05f3bf 100644 --- a/src/libjin/input/je_mouse.h +++ b/src/libjin/input/je_mouse.h @@ -7,15 +7,15 @@ namespace JinEngine { - namespace Input - { + namespace Input + { /// /// /// - class Mouse : public Singleton - { - public: + class Mouse : public Singleton + { + public: /// /// /// @@ -29,16 +29,16 @@ namespace JinEngine /// /// /// - void getState(int* x, int* y); + void getState(int* x, int* y); /// /// /// - void setVisible(bool visible); + void setVisible(bool visible); - }; + }; - } // namespace Input + } // namespace Input } // namespace JinEngine #endif // defined(jin_input) -- cgit v1.1-26-g67d0