From 7d5f055547e70fa93ee9ac944e62f8d657b9dc55 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 19 Oct 2018 08:36:44 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Input/je_mouse.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/libjin/Input/je_mouse.h (limited to 'src/libjin/Input/je_mouse.h') diff --git a/src/libjin/Input/je_mouse.h b/src/libjin/Input/je_mouse.h new file mode 100644 index 0000000..e9fab42 --- /dev/null +++ b/src/libjin/Input/je_mouse.h @@ -0,0 +1,31 @@ +#ifndef __LIBJIN_MOUSE_H +#define __LIBJIN_MOUSE_H +#include "../core/je_configuration.h" +#ifdef LIBJIN_MODULES_INPUT + +#include "../common/je_singleton.hpp" + +namespace jin +{ + namespace input + { + + class Mouse : public Singleton + { + public: + void getState(int* x, int* y); + void setVisible(bool visible); + + private: + singleton(Mouse); + + Mouse() {}; + ~Mouse() {}; + + }; + + } // namespace input +} // namespace jin + +#endif // LIBJIN_MODULES_INPUT +#endif // __LIBJIN_MOUSE_H \ No newline at end of file -- cgit v1.1-26-g67d0