summaryrefslogtreecommitdiffhomepage
path: root/src/input.cpp
blob: bad2ce8b956e1bbbb8446e8641401f4bffc123ef (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "input.hpp"
#include "GLFW/glfw3.h"

namespace Input
{
	void process(GLFWwindow *window)
	{
		if(glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
			glfwSetWindowShouldClose(window, true);
	}
}