From 61301a96d309fe2deef0d0dc2e2bc2f3d4003bf9 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 28 Jul 2018 09:58:37 +0800 Subject: *update --- src/libjin/Input/Mouse.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/libjin/Input/Mouse.cpp') 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 -- cgit v1.1-26-g67d0