| 648 | } |
| 649 | |
| 650 | bool IDrawableModule::TestClick(float x, float y, bool right, bool testOnly /*=false*/) |
| 651 | { |
| 652 | if (IsResizable() && mHoveringOverResizeHandle) |
| 653 | { |
| 654 | if (!testOnly) |
| 655 | TheSynth->SetResizeModule(this); |
| 656 | return true; |
| 657 | } |
| 658 | |
| 659 | for (auto source : mPatchCableSources) |
| 660 | { |
| 661 | if (source->TestClick(x, y, right, testOnly)) |
| 662 | return true; |
| 663 | } |
| 664 | |
| 665 | if (IClickable::TestClick(x, y, right, testOnly)) |
| 666 | return true; |
| 667 | |
| 668 | return false; |
| 669 | } |
| 670 | |
| 671 | void IDrawableModule::OnClicked(float x, float y, bool right) |
| 672 | { |
no test coverage detected