aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Input
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Input')
-rw-r--r--src/libjin/Input/Keyboard.h12
-rw-r--r--src/libjin/Input/Mouse.cpp26
-rw-r--r--src/libjin/Input/Mouse.h26
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