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 | |
v0.1.0
Diffstat (limited to 'src/input')
| -rw-r--r-- | src/input/event.cpp | 7 | ||||
| -rw-r--r-- | src/input/event.h | 13 | ||||
| -rw-r--r-- | src/input/keyboard.cpp | 0 | ||||
| -rw-r--r-- | src/input/keyboard.h | 13 | ||||
| -rw-r--r-- | src/input/mouse.cpp | 0 | ||||
| -rw-r--r-- | src/input/mouse.h | 30 | 
6 files changed, 63 insertions, 0 deletions
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 --- /dev/null +++ b/src/input/keyboard.cpp 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 --- /dev/null +++ b/src/input/mouse.cpp 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  | 
