renamed logger into debug and start of piping through the GLFW input system to the script system

This commit is contained in:
Hartmut Seichter 2019-01-09 11:34:30 +01:00
parent b8f5681131
commit 39663f40ef
2 changed files with 57 additions and 0 deletions

View 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
View 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;
}
}