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.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src/libjin/Input/Mouse.h') diff --git a/src/libjin/Input/Mouse.h b/src/libjin/Input/Mouse.h index b926327..cb70407 100644 --- a/src/libjin/Input/Mouse.h +++ b/src/libjin/Input/Mouse.h @@ -1,15 +1,29 @@ #ifndef __JIN_MOUSE_H #define __JIN_MOUSE_H +#include "../modules.h" +#ifdef JIN_MODULES_INPUT + +#include "../Common/Singleton.h" + namespace jin { namespace input { - class Mouse + class Mouse : public Singleton { public: - }; + // »ñµÃ×ø±ê + void getState(int* x, int* y); + private: + Mouse() {}; + ~Mouse() {}; + + SINGLETON(Mouse); + }; } } -#endif \ No newline at end of file + +#endif // JIN_MODULES_INPUT +#endif // __JIN_MOUSE_H \ No newline at end of file -- cgit v1.1-26-g67d0