From 3d70e69f6c9fbdcb890c6986096330e4f6611a32 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Thu, 29 May 2025 19:19:59 +0200 Subject: added mapper_tick() functionality, regressed 200fps, and optimized it back up to ~1940fps --- callbacks.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'callbacks.c') 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: { -- cgit v1.2.3