diff --git a/src/system/include/pw/system/input.hpp b/src/system/include/pw/system/input.hpp new file mode 100644 index 0000000..03c0462 --- /dev/null +++ b/src/system/include/pw/system/input.hpp @@ -0,0 +1,25 @@ +#ifndef PW_SYSTEM_INPUT_HPP +#define PW_SYSTEM_INPUT_HPP + +#include + +namespace pw { + +class input { +public: + + static input& get(); + +protected: + + struct impl; + std::unique_ptr _impl; + +private: + input(); + ~input() = default; +}; + +} + +#endif diff --git a/src/system/src/input.cpp b/src/system/src/input.cpp new file mode 100644 index 0000000..b39e941 --- /dev/null +++ b/src/system/src/input.cpp @@ -0,0 +1,32 @@ +#include "pw/system/input.hpp" + +#include "GLFW/glfw3.h" + +namespace pw { + +struct input::impl { + + + + + GLFWwindow *_window; +}; + +input::input() + : _impl(new input::impl()) +{ + +} + + +input &input::get() +{ + static input instance; + return instance; +} + + + + + +}