Fake parameter change when clicking host parameter module
This commit is contained in:
parent
75aad04bb8
commit
28d3ca2d68
4 changed files with 42 additions and 1 deletions
|
|
@ -180,6 +180,21 @@ void CardinalPluginContext::removeIdleCallback(IdleCallback* const cb)
|
|||
ui->removeIdleCallback(cb);
|
||||
}
|
||||
|
||||
void handleHostParameterDrag(CardinalPluginContext* pcontext, uint index, bool started)
|
||||
{
|
||||
DISTRHO_SAFE_ASSERT_RETURN(pcontext->ui != nullptr,);
|
||||
|
||||
if (started)
|
||||
{
|
||||
pcontext->ui->editParameter(index, true);
|
||||
pcontext->ui->setParameterValue(index, pcontext->parameters[index]);
|
||||
}
|
||||
else
|
||||
{
|
||||
pcontext->ui->editParameter(index, false);
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------
|
||||
|
||||
class CardinalUI : public CardinalBaseUI,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue