How to control mouse sensitivity in LAF knobs
-
Hi,
is there any option to control mouse sensitivity for LAF generated sliders?
The sensitivity is very high and it's unable to control the it with Component Specific Properties menu. -
I found the following solution:
In sliders made with LAF you can control mouseSensitivity through Component Specific Properties if only choosing slider style as a "Knob",
so i chose slider style "Knob" for all vertical and horizontal sliders and used "else if" in LAF code to separate them from other knobs. -
Have you used
obj.value
in the LAF function of the slider?Instead of that, use
obj.valueNormalized
and the mouse sensivity will be active in LAF.You can change the mouse sensivity of this knob and it will react.
HiseSnippet 1172.3ocsV0vSaaDF9LDOs3sNsJse.mhzjR5RgDG1JHDZgOR1hFPyHcnNgpPG1miuw46hruPHsEo8Sc+D1+fs2yWbrgjh5hVsDh798y8dueb8ikdzjDYLxp7qlNhhr9R6ASEpvCCILAp2QHqmXe79c6bKIZDmlfNX5HRRB0GYYs9OoUwpbIT52e+iGP3DgGMmEBctj4QOlEwT4b629WXbdWhO8UrnBZuU6ddRwgRtbL.m0safFQ7tlLjdJQq1Z1HqOqiOSIiGnHJ.KVkNP5OcPnbhvn+4rD1UbplnIZ.3HC6tRtuFwZtnCCYb+9YG6DD3k94Ig0MIguw9DlOaN+7jwWmJ.maQw7g0Z2GdqeO30rH7ZT.dKARVEfTICjdp8.uX1HUtDMd9B6dBEMNf.o8hPwnKZsdkrOTBZHTaDQtl1MFHlaQ0sZznN1sQiZ65n+1bS7wROBGCW3NvUQhBykd7K4j.7d3L+3ESgiWphGKkWuuvuKkxql5CvC3AblOMNwIyzMhoCYIPH6NV3oXRQ0J9wjImIUj3oFkqTGGjIbXcr7p+nly6bbvf69YYL6sPjATYz0AyBvUAU1PQuUg2aObkbcpTC6fw324T9FRLl.nVqHAP7tNkwlOirIfrc1076vB+VEx7tV.IXfmKvKypYlMEXStn0avahcwOGrbyTszhtEDUkbg6a.9Sf+be1beUC+rTfbCgOldpLNhvYuk5i+t7voCE74Td3FAP2w9bdU80BPlPUldhzCMSQiLjMMh04xiYBZU3pTG85o3aS27+WDHvkTdd3g99pgFBii0v3L4XAz5bF0SQDC4zpWbac7z53I0wgPjBSuzeDL5VaWSfznrCmyFk7PeT.akAekc4FJugFie+6SyadbPGpeMmxvM6BgSWGjAbcz9nCGjsuCiK6fuyw4tY8.lxd88oob6x7hK2BMAC0HHZjT.DUqrnpUztaQ1ZjuPmSViRJBx5CvRwoRE8khp5VgxN24fennffkJSCwXImSiWpX8L23GyvphwQWQiqiSqVmqHLH59S2r+vS2JN70yjwJnnTzSvTubDU7gFIilkl0SBmgJPUU5bvuZ1bPSxEw70SqWLSiRQ+rkKsclzqM525cDQQx7I3dHjinwJl9zXcD8FXUkYVaY6inIWqjiR0c10LrI7+FBtc9ps+771SyI9015JV8l1bsQSX9pv457Wz1gT1vvBaM60Nhj6Qzu2NYbP.C3TxF+snBsbZGuk6Nsdw1sZ31rfDifscc2dmVttHeZ.YLWcdg7TJ3xlB7.0QKtRBVFJ8GyIp6ugT+rfYBfBq6sVRu5QjvTSK9rg+2Va9wBwmZ2mo7BWNFWaIXDpY9TfwYO13I1cBBfIr4.rjc2W+o4kEHXhthIFdBQEqKdrOcbz.3x1iBQWHnbcis0Z5VPCcCMsNCLfJ7SI9G3alvlZZqYBalIDEQ7hkW5YZb0Om4yS4.XRj9Rtx1mnowMyZRssarQCTD7xpK87zG+mCSEVtMtqfMsVAa1ZEr46WAa9gUvlWrB1r8iZi9Qs6OVIiLsC.i9cRGVZY0QPfJqzpPz+BrFScgO
-
@orange yes, I used valueNormalized.
In your snippet - if i change the style knob to "Horizontal" (in Property Editor) the mouseSensitivity will stop working.That's was the issue when i tried to separate drawRotarySlider and drawLinearSlider with LAF.
Now I use only LAF drawRotarySlider and separating rotary knobs and horizontal sliders with other attribute