Files
fall-fever/EventHandler.cpp
2020-08-31 13:21:19 +02:00

10 lines
213 B
C++

#include "EventHandler.h"
void EventHandler::handleEvents(GLFWwindow *window) {
glfwPollEvents();
if(glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
glfwSetWindowShouldClose(window, true);
}