aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Input/Mouse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Input/Mouse.cpp')
-rw-r--r--src/libjin/Input/Mouse.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/libjin/Input/Mouse.cpp b/src/libjin/Input/Mouse.cpp
index e69de29..98c4a39 100644
--- a/src/libjin/Input/Mouse.cpp
+++ b/src/libjin/Input/Mouse.cpp
@@ -0,0 +1,22 @@
+#include "../modules.h"
+#ifdef JIN_MODULES_INPUT
+
+#include "SDL.h"
+#include "Mouse.h"
+
+namespace jin
+{
+namespace input
+{
+
+ void Mouse::getState(int* x, int* y)
+ {
+#ifdef JIN_INPUT_SDL
+ SDL_GetMouseState(x, y);
+#endif // JIN_INPUT_SDL
+ }
+
+} // input
+} // jin
+
+#endif // JIN_MODULES_INPUT \ No newline at end of file