aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/input')
-rw-r--r--src/libjin/input/event.cpp7
-rw-r--r--src/libjin/input/event.h13
-rw-r--r--src/libjin/input/keyboard.cpp0
-rw-r--r--src/libjin/input/keyboard.h13
-rw-r--r--src/libjin/input/mouse.cpp0
-rw-r--r--src/libjin/input/mouse.h30
6 files changed, 63 insertions, 0 deletions
diff --git a/src/libjin/input/event.cpp b/src/libjin/input/event.cpp
new file mode 100644
index 0000000..8eb45e6
--- /dev/null
+++ b/src/libjin/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/libjin/input/event.h b/src/libjin/input/event.h
new file mode 100644
index 0000000..e09f422
--- /dev/null
+++ b/src/libjin/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/libjin/input/keyboard.cpp b/src/libjin/input/keyboard.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/libjin/input/keyboard.cpp
diff --git a/src/libjin/input/keyboard.h b/src/libjin/input/keyboard.h
new file mode 100644
index 0000000..bbb6456
--- /dev/null
+++ b/src/libjin/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/libjin/input/mouse.cpp b/src/libjin/input/mouse.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/libjin/input/mouse.cpp
diff --git a/src/libjin/input/mouse.h b/src/libjin/input/mouse.h
new file mode 100644
index 0000000..55e3346
--- /dev/null
+++ b/src/libjin/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