MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / MouseMoved

Method MouseMoved

Source/PatchCable.cpp:444–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444bool 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
455void PatchCable::MouseReleased()
456{

Callers

nothing calls this directly

Calls 5

DistSqToLineFunction · 0.85
ofVec2fClass · 0.85
GetOwningContainerMethod · 0.80
GetMouseXMethod · 0.45
GetMouseYMethod · 0.45

Tested by

no test coverage detected