| 129 | } |
| 130 | |
| 131 | int PluginEditor::getControlParameterIndex(Component& c) { |
| 132 | const auto id = c.getComponentID(); |
| 133 | if (id.isEmpty()) { |
| 134 | return -1; |
| 135 | } |
| 136 | if (const auto para = p_ref_.parameters_.getParameter(id); para == nullptr) { |
| 137 | return -1; |
| 138 | } else { |
| 139 | return para->getParameterIndex(); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | void PluginEditor::mouseDown(const juce::MouseEvent& event) { |
| 144 | if (event.mods.isRightButtonDown() && event.getNumberOfClicks() == 1) { |