View Single Post
Old 03-29-2018, 04:23 AM   #2
random_id
Human being with feelings
 
random_id's Avatar
 
Join Date: May 2012
Location: PA, USA
Posts: 356
Default

I think you would want to do something like this:

-Create your own custom knob class that inherits whatever control you are currently using.
-Add a private/protected variable. Something like bool bResetOnClick
-Add a function to change the variable. Something like void SetOnClick(bool x){bResetOnClick = x;}
-In the plugin constructor where you initialize the knobs, call the new function to set the bResetOnClick
-Override OnMouseDblClick to look at the bResetOnClick. If it is true, do the same code that is in the base class.


I don't think you want to start messing with the base class, although you could if you want.
__________________
Website: LVC-Audio
random_id is offline   Reply With Quote