| 105 | |
| 106 | #ifndef HEADLESS |
| 107 | void 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 | // -------------------------------------------------------------------------------------------------------------------- |
no test coverage detected