From 78ec37484b92efee1627e934a6e4e43c74968f88 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 02:07:18 +0100 Subject: feat(platform): Add 'q' key to quit Adds the 'q' key as an alternative to 'Escape' for closing the application. --- src/platform.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/platform.cc') diff --git a/src/platform.cc b/src/platform.cc index fa49b53..b0ec86b 100644 --- a/src/platform.cc +++ b/src/platform.cc @@ -10,7 +10,7 @@ static bool g_is_fullscreen = false; static void glfw_key_callback(GLFWwindow *cb_window, int key, int scancode, int action, int mods) { if (action == GLFW_PRESS) { - if (key == GLFW_KEY_ESCAPE) { + if (key == GLFW_KEY_ESCAPE || key == GLFW_KEY_Q) { glfwSetWindowShouldClose(cb_window, GLFW_TRUE); } else if (key == GLFW_KEY_F) { platform_toggle_fullscreen(); -- cgit v1.2.3