summaryrefslogtreecommitdiff
path: root/callbacks.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-05-29 19:19:59 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-05-29 19:19:59 +0200
commit3d70e69f6c9fbdcb890c6986096330e4f6611a32 (patch)
tree9f1ce34365ec376f10f6c6e68c1ca64fa4d4d63d /callbacks.c
parent7cca3bdbec289328b537c8256b43dcfedc5d56b8 (diff)
added mapper_tick() functionality, regressed 200fps, and optimized it back up to ~1940fps
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: {