summaryrefslogtreecommitdiff
path: root/callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'callbacks.c')
-rw-r--r--callbacks.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/callbacks.c b/callbacks.c
index f32c59d..e43826d 100644
--- a/callbacks.c
+++ b/callbacks.c
@@ -45,12 +45,6 @@ static void toggle_fullscreen(bool enable) {
static void key_callback(GLFWwindow *window, int key, int scancode, int action, int mods) {
struct nes_state *nes_state = (struct nes_state*)glfwGetWindowUserPointer(window);
- if(key == GLFW_KEY_ESCAPE) {
- if(action == GLFW_PRESS) {
- glfwSetWindowShouldClose(window, 1);
- }
- }
-
if(action == GLFW_RELEASE) {
switch(key) {
case GLFW_KEY_F12: {