diff options
author | chai <chaifix@163.com> | 2018-07-28 09:58:37 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-28 09:58:37 +0800 |
commit | 61301a96d309fe2deef0d0dc2e2bc2f3d4003bf9 (patch) | |
tree | d335e4312b28addf40f13e7f49900e9b5e3058a7 /src/libjin/input/mouse.cpp | |
parent | 92dab582ccac31be7fa410e7f4fb3789e88a0629 (diff) |
*update
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 |