diff --git a/src/ptk.c b/src/ptk.c index 2a1872e..d5a58b2 100644 --- a/src/ptk.c +++ b/src/ptk.c @@ -22,18 +22,6 @@ #include #include -// TODO: clean up globals here - -static void key_callback(GLFWwindow *window, int key, int scancode, int action, int mods) { - (void)window; (void)scancode; (void)action; (void)mods; - if (key == GLFW_KEY_SPACE) { - PTK_LIST_FOR_EACH_P(Vertex, g_vertices, vertex, { - vertex->pos.x += 1.0f; - }); - vk_transfer_vertex_data(); - } -} - static void mouse_button_callback(GLFWwindow *window, int button, int action, int mods) { double x, y; glfwGetCursorPos(window, &x, &y); @@ -115,7 +103,6 @@ bool ptk_init(const size_t width, const size_t height, const char *title, const } glfwSetFramebufferSizeCallback(window, vk_framebuffer_resized); - glfwSetKeyCallback(window, key_callback); glfwSetMouseButtonCallback(window, mouse_button_callback); vk_init_vertices();