mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added an option to Slider::setVelocityModeParameters() to set the modifier keys
This commit is contained in:
parent
0f752396a5
commit
edea094d7d
2 changed files with 28 additions and 17 deletions
|
|
@ -211,11 +211,14 @@ public:
|
|||
the threshold is reached
|
||||
@param userCanPressKeyToSwapMode if true, then the user can hold down the ctrl or command
|
||||
key to toggle velocity-sensitive mode
|
||||
@param modifiersToSwapModes this is a set of modifier flags which will be tested when determining
|
||||
whether to enable/disable velocity-sensitive mode
|
||||
*/
|
||||
void setVelocityModeParameters (double sensitivity = 1.0,
|
||||
int threshold = 1,
|
||||
double offset = 0.0,
|
||||
bool userCanPressKeyToSwapMode = true);
|
||||
bool userCanPressKeyToSwapMode = true,
|
||||
ModifierKeys::Flags modifiersToSwapModes = ModifierKeys::ctrlAltCommandModifiers);
|
||||
|
||||
/** Returns the velocity sensitivity setting.
|
||||
@see setVelocityModeParameters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue