charcoal/OpenGLEngine/GLFWInputManager.h

24 lines
428 B
C
Raw Permalink Normal View History

#pragma once
2018-10-10 21:44:15 +00:00
#include "deps.h"
#include "InputManager.h"
#include <map>
2018-09-12 21:03:46 +00:00
namespace charcoal
{
2018-09-12 21:03:46 +00:00
class GLFWInputManager : public InputManager
{
public:
~GLFWInputManager();
2018-09-12 21:03:46 +00:00
void init(GLFWwindow* p_window);
2018-09-12 21:03:46 +00:00
static void key_callback(GLFWwindow* p_window, int key, int scancode, int action, int mods);
private:
GLFWwindow* m_p_window = nullptr;
2018-09-12 21:03:46 +00:00
static std::map<GLFWwindow*, GLFWInputManager*> s_glfw_windows;
};
}