MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / handleHostParameterDrag

Function handleHostParameterDrag

src/CardinalCommon.cpp:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106#ifndef HEADLESS
107void handleHostParameterDrag(const CardinalPluginContext* pcontext, uint index, bool started)
108{
109 DISTRHO_SAFE_ASSERT_RETURN(pcontext->ui != nullptr,);
110
111 #ifndef CARDINAL_COMMON_DSP_ONLY
112 if (started)
113 {
114 pcontext->ui->editParameter(index, true);
115 pcontext->ui->setParameterValue(index, pcontext->parameters[index]);
116 }
117 else
118 {
119 pcontext->ui->editParameter(index, false);
120 }
121 #endif
122}
123#endif
124
125// --------------------------------------------------------------------------------------------------------------------

Callers 2

onDragStartMethod · 0.50
onDragEndMethod · 0.50

Calls 2

editParameterMethod · 0.80
setParameterValueMethod · 0.80

Tested by

no test coverage detected