diff options
author | chai <chaifix@163.com> | 2018-05-16 15:02:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-16 15:02:43 +0800 |
commit | fdaf0e7eb6b9d9bdd7d5ab5f814f4ebbf791ff67 (patch) | |
tree | 6b9712381d6bce07554491acf900ec4b27e6ecb0 /src/input/mouse.h |
v0.1.0
Diffstat (limited to 'src/input/mouse.h')
-rw-r--r-- | src/input/mouse.h | 30 |
1 files changed, 30 insertions, 0 deletions
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 |