From fdaf0e7eb6b9d9bdd7d5ab5f814f4ebbf791ff67 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 16 May 2018 15:02:43 +0800 Subject: v0.1.0 --- src/input/mouse.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/input/mouse.h (limited to 'src/input/mouse.h') diff --git a/src/input/mouse.h b/src/input/mouse.h new file mode 100644 index 0000000..55e3346 --- /dev/null +++ b/src/input/mouse.h @@ -0,0 +1,30 @@ +#ifndef __JIN_MOUSE_H +#define __JIN_MOUSE_H +namespace jin +{ +namespace input +{ + class Mouse + { + public: + + }; + + inline const char* buttonStr(int id) { + switch (id) { + case 1: return "left"; + case 2: return "middle"; + case 3: return "right"; + case 4: return "wheelup"; + case 5: return "wheeldown"; + default: return "?"; + } + } + + inline const char* wheelStr(int dir) + { + + } +} +} +#endif \ No newline at end of file -- cgit v1.1-26-g67d0