feat(input,window): Add glfw debug and fix nanosleep for windows
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user