finish ptk.c cleanup by removing key callback

This commit is contained in:
jacekpoz 2024-09-25 19:33:51 +02:00
parent 96721f78ee
commit 46a00f9466
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -22,18 +22,6 @@
#include <stdlib.h>
#include <string.h>
// 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();