| 442 | } |
| 443 | |
| 444 | bool PatchCable::MouseMoved(float x, float y) |
| 445 | { |
| 446 | x = TheSynth->GetMouseX(GetOwningModule()->GetOwningContainer()); |
| 447 | y = TheSynth->GetMouseY(GetOwningModule()->GetOwningContainer()); |
| 448 | |
| 449 | PatchCablePos cable = GetPatchCablePos(); |
| 450 | mHovered = DistSqToLine(ofVec2f(x, y), cable.plug, cable.end) < 25 && gHoveredUIControl == nullptr; |
| 451 | |
| 452 | return false; |
| 453 | } |
| 454 | |
| 455 | void PatchCable::MouseReleased() |
| 456 | { |
nothing calls this directly
no test coverage detected