Browse Source

Change Ctrl and Shift+ctrl knob adjustment speeds to 1/10 and 1/100.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
bfa402c6c5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/app/Knob.cpp

+ 2
- 2
src/app/Knob.cpp View File

@@ -115,11 +115,11 @@ void Knob::onDragEnd(const event::DragEnd& e) {
static float getModSpeed() { static float getModSpeed() {
int mods = APP->window->getMods(); int mods = APP->window->getMods();
if ((mods & RACK_MOD_MASK) == RACK_MOD_CTRL) if ((mods & RACK_MOD_MASK) == RACK_MOD_CTRL)
return 1 / 16.f;
return 1 / 10.f;
else if ((mods & RACK_MOD_MASK) == GLFW_MOD_SHIFT) else if ((mods & RACK_MOD_MASK) == GLFW_MOD_SHIFT)
return 4.f; return 4.f;
else if ((mods & RACK_MOD_MASK) == (RACK_MOD_CTRL | GLFW_MOD_SHIFT)) else if ((mods & RACK_MOD_MASK) == (RACK_MOD_CTRL | GLFW_MOD_SHIFT))
return 1 / 256.f;
return 1 / 100.f;
else else
return 1.f; return 1.f;
} }


Loading…
Cancel
Save