feat(input,window): Add glfw debug and fix nanosleep for windows

This commit is contained in:
PedroEdiaz
2025-04-12 11:43:39 -06:00
parent d2d6794f08
commit dc49810a67
2 changed files with 15 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
#include "main.h"
#include <glad.h>
#include <GLFW/glfw3.h>
#include <cglm/quat.h>
#include <stdio.h>
@@ -21,6 +22,12 @@ vec3 axis[3] = {
extern struct projection projection;
void __error_callback_input(int x, const char * msg )
{
mlog("[GLFW] ");
mlog(msg);
mlog("\n");
}
void __key_callback_input(
GLFWwindow *window, int key, int scancode, int action, int mods)
{