scaffolding in preparation for implementing undo
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#include "export.h"
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
int MOUSE_PRESSED = GLFW_PRESS;
|
||||
int MOUSE_RELEASED = GLFW_RELEASE;
|
||||
int PRESS = GLFW_PRESS;
|
||||
int RELEASE = GLFW_RELEASE;
|
||||
int LEFT_MOUSE_BUTTON = GLFW_MOUSE_BUTTON_1;
|
||||
int KEY_Z = GLFW_KEY_Z;
|
||||
|
||||
// Calls function exported from SML
|
||||
void mouseMoveCallback(GLFWwindow *window, double xpos, double ypos) {
|
||||
@@ -28,3 +29,10 @@ void framebufferSizeCallback(GLFWwindow *window, int width, int height) {
|
||||
void setFramebufferSizeCallback(GLFWwindow *window, int width, int height) {
|
||||
glfwSetFramebufferSizeCallback(window, framebufferSizeCallback);
|
||||
}
|
||||
|
||||
void keyCallback(GLFWwindow *window, int key, int scancode, int action, int mods) {
|
||||
mltonKeyCallback(key, scancode, action, mods);
|
||||
}
|
||||
void setKeyCallback(GLFWwindow *window) {
|
||||
glfwSetKeyCallback(window, keyCallback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user