Files
fall-fever/EventHandler.cpp
2020-08-31 00:56:04 +02:00

11 lines
270 B
C++

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