diff options
Diffstat (limited to 'src/libjin/input')
-rw-r--r-- | src/libjin/input/keyboard.h | 12 | ||||
-rw-r--r-- | src/libjin/input/mouse.cpp | 26 | ||||
-rw-r--r-- | src/libjin/input/mouse.h | 26 |
3 files changed, 32 insertions, 32 deletions
diff --git a/src/libjin/input/keyboard.h b/src/libjin/input/keyboard.h index 250e8f0..b50302c 100644 --- a/src/libjin/input/keyboard.h +++ b/src/libjin/input/keyboard.h @@ -3,15 +3,15 @@ namespace jin { -namespace input -{ + namespace input + { - class Keyboard - { + class Keyboard + { - }; + }; -} // input + } // input } // jin #endif // __LIBJIN_KEYBOARD_H
\ No newline at end of file diff --git a/src/libjin/input/mouse.cpp b/src/libjin/input/mouse.cpp index 31c29f9..3869337 100644 --- a/src/libjin/input/mouse.cpp +++ b/src/libjin/input/mouse.cpp @@ -6,22 +6,22 @@ namespace jin { -namespace input -{ + namespace input + { - void Mouse::getState(int* x, int* y) - { - #ifdef LIBJIN_INPUT_SDL - SDL_GetMouseState(x, y); - #endif // LIBJIN_INPUT_SDL - } + void Mouse::getState(int* x, int* y) + { + #ifdef LIBJIN_INPUT_SDL + SDL_GetMouseState(x, y); + #endif // LIBJIN_INPUT_SDL + } - void Mouse::setVisible(bool visible) - { - SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE); - } + void Mouse::setVisible(bool visible) + { + SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE); + } -} // input + } // input } // jin #endif // LIBJIN_MODULES_INPUT
\ No newline at end of file diff --git a/src/libjin/input/mouse.h b/src/libjin/input/mouse.h index 09db5d2..29d730b 100644 --- a/src/libjin/input/mouse.h +++ b/src/libjin/input/mouse.h @@ -7,24 +7,24 @@ namespace jin { -namespace input -{ + namespace input + { - class Mouse : public Singleton<Mouse> - { - public: - void getState(int* x, int* y); - void setVisible(bool visible); + class Mouse : public Singleton<Mouse> + { + public: + void getState(int* x, int* y); + void setVisible(bool visible); - private: - SINGLETON(Mouse); + private: + SINGLETON(Mouse); - Mouse() {}; - ~Mouse() {}; + Mouse() {}; + ~Mouse() {}; - }; + }; -} // input + } // input } // jin #endif // LIBJIN_MODULES_INPUT |