finish ptk.c cleanup by removing key callback
This commit is contained in:
parent
96721f78ee
commit
46a00f9466
1 changed files with 0 additions and 13 deletions
13
src/ptk.c
13
src/ptk.c
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue