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/event.cpp | 7 +++++++ src/input/event.h | 13 +++++++++++++ src/input/keyboard.cpp | 0 src/input/keyboard.h | 13 +++++++++++++ src/input/mouse.cpp | 0 src/input/mouse.h | 30 ++++++++++++++++++++++++++++++ 6 files changed, 63 insertions(+) create mode 100644 src/input/event.cpp create mode 100644 src/input/event.h create mode 100644 src/input/keyboard.cpp create mode 100644 src/input/keyboard.h create mode 100644 src/input/mouse.cpp create mode 100644 src/input/mouse.h (limited to 'src/input') diff --git a/src/input/event.cpp b/src/input/event.cpp new file mode 100644 index 0000000..8eb45e6 --- /dev/null +++ b/src/input/event.cpp @@ -0,0 +1,7 @@ +#include "event.h" +#include "SDL2\SDL.h" + +namespace jin +{ + +} \ No newline at end of file diff --git a/src/input/event.h b/src/input/event.h new file mode 100644 index 0000000..e09f422 --- /dev/null +++ b/src/input/event.h @@ -0,0 +1,13 @@ +#ifndef __JIN_EVENT_H +#define __JIN_EVENT_H +namespace jin +{ +namespace input +{ + + + +} +} + +#endif \ No newline at end of file diff --git a/src/input/keyboard.cpp b/src/input/keyboard.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/input/keyboard.h b/src/input/keyboard.h new file mode 100644 index 0000000..bbb6456 --- /dev/null +++ b/src/input/keyboard.h @@ -0,0 +1,13 @@ +#ifndef __JIN_KEYBOARD_H +#define __JIN_KEYBOARD_H +namespace jin +{ +namespace input +{ + class Keyboard + { + + }; +} +} +#endif \ No newline at end of file diff --git a/src/input/mouse.cpp b/src/input/mouse.cpp new file mode 100644 index 0000000..e69de29 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