|
|
@@ -264,7 +264,7 @@ void charCallback(GLFWwindow *window, unsigned int codepoint) { |
|
|
|
|
|
|
|
void keyCallback(GLFWwindow *window, int key, int scancode, int action, int mods) { |
|
|
|
// Keyboard MIDI driver |
|
|
|
if (glfwGetInputMode(gWindow, GLFW_LOCK_KEY_MODS) & GLFW_MOD_CAPS_LOCK) { |
|
|
|
if (mods & GLFW_MOD_CAPS_LOCK) { |
|
|
|
if (action == GLFW_PRESS) { |
|
|
|
keyboardPress(key); |
|
|
|
} |
|
|
@@ -355,6 +355,8 @@ void windowInit() { |
|
|
|
|
|
|
|
glfwSwapInterval(1); |
|
|
|
|
|
|
|
glfwSetInputMode(gWindow, GLFW_LOCK_KEY_MODS, 1); |
|
|
|
|
|
|
|
glfwSetWindowSizeCallback(gWindow, windowSizeCallback); |
|
|
|
glfwSetMouseButtonCallback(gWindow, mouseButtonStickyCallback); |
|
|
|
// Call this ourselves, but on every frame instead of only when the mouse moves |
|
|
|