Browse Source

Don't hang MIDI keyboard driver notes when a modifier is held upon release.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
cc9e0337e0
1 changed files with 5 additions and 7 deletions
  1. +5
    -7
      src/window.cpp

+ 5
- 7
src/window.cpp View File

@@ -164,13 +164,11 @@ static void keyCallback(GLFWwindow *win, int key, int scancode, int action, int
return; return;


// Keyboard MIDI driver // Keyboard MIDI driver
if ((mods & RACK_MOD_MASK) == 0) {
if (action == GLFW_PRESS) {
keyboard::press(key);
}
else if (action == GLFW_RELEASE) {
keyboard::release(key);
}
if ((mods & RACK_MOD_MASK) == 0 && action == GLFW_PRESS) {
keyboard::press(key);
}
if (action == GLFW_RELEASE) {
keyboard::release(key);
} }
} }




Loading…
Cancel
Save