I would like to activate the velocity mode of my rotary knobs with the Shift key, instead of the Ctrl/Command/Alt keys, that are used for other purposes in my plugin.
In the mouseDrag method of juce_Slider.cpp, there is this code:
- Code: Select all
if (isVelocityBased == (userKeyOverridesVelocity && e.mods.testFlags (ModifierKeys::ctrlModifier
|| (maximum - minimum) / sliderRegionSize < interval)
You can see that the ModifierKeys that enable the velocity mode are hard-coded. Is it possible to add a member for this (it could be set by an additional argument of setVelocityModeParameters() for example) ?