2024-12-10 19:48:07 +00:00
|
|
|
#include "export.h"
|
|
|
|
|
#include "glad.h"
|
|
|
|
|
#define GLFW_INCLUDE_NONE
|
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
|
|
|
|
|
|
int PRESS = GLFW_PRESS;
|
|
|
|
|
int RELEASE = GLFW_RELEASE;
|
|
|
|
|
|
2024-12-14 07:59:43 +00:00
|
|
|
int ARROW_UP = GLFW_KEY_UP;
|
|
|
|
|
int ARROW_DOWN = GLFW_KEY_DOWN;
|
|
|
|
|
int ARROW_LEFT = GLFW_KEY_LEFT;
|
|
|
|
|
int ARROW_RIGHT = GLFW_KEY_RIGHT;
|
|
|
|
|
|
|
|
|
|
void keyCallback(GLFWwindow* window, int key, int scancode, int action, int mods) {
|
|
|
|
|
mltonKeyCallback(key, scancode, action, mods);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void setKeyCallback(GLFWwindow* window) {
|
|
|
|
|
glfwSetKeyCallback(window, keyCallback);
|
|
|
|
|
}
|