renamed logger into debug and start of piping through the GLFW input system to the script system
This commit is contained in:
parent
b8f5681131
commit
39663f40ef
2 changed files with 57 additions and 0 deletions
25
src/system/include/pw/system/input.hpp
Normal file
25
src/system/include/pw/system/input.hpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#ifndef PW_SYSTEM_INPUT_HPP
|
||||
#define PW_SYSTEM_INPUT_HPP
|
||||
|
||||
#include <pw/core/globals.hpp>
|
||||
|
||||
namespace pw {
|
||||
|
||||
class input {
|
||||
public:
|
||||
|
||||
static input& get();
|
||||
|
||||
protected:
|
||||
|
||||
struct impl;
|
||||
std::unique_ptr<impl> _impl;
|
||||
|
||||
private:
|
||||
input();
|
||||
~input() = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
32
src/system/src/input.cpp
Normal file
32
src/system/src/input.cpp
Normal file
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue