diff options
Diffstat (limited to 'src/libjin/input/mouse.cpp')
-rw-r--r-- | src/libjin/input/mouse.cpp | 22 |
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 |