charcoal/OpenGLEngine/GLFWInputManager.h
2018-09-12 17:03:46 -04:00

24 lines
430 B
C++

#pragma once
#include "stdafx.h"
#include "InputManager.h"
#include <map>
namespace charcoal
{
class GLFWInputManager : public InputManager
{
public:
~GLFWInputManager();
void init(GLFWwindow* p_window);
static void key_callback(GLFWwindow* p_window, int key, int scancode, int action, int mods);
private:
GLFWwindow* m_p_window = nullptr;
static std::map<GLFWwindow*, GLFWInputManager*> s_glfw_windows;
};
}