charcoal/OpenGLEngine/GLFWInputManager.h

21 lines
397 B
C
Raw Normal View History

#pragma once
#include "stdafx.h"
#include "InputManager.h"
#include <map>
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;
};