11 lines
270 B
C++
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);
|
|
}
|
|
|