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

Method Grab

Source/PatchCable.cpp:701–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701void PatchCable::Grab()
702{
703 if (!mDragging)
704 {
705 mDragging = true;
706 sActivePatchCable = this;
707 gHoveredUIControl = nullptr;
708 mGrabPos.set(TheSynth->GetRawMouseX(), TheSynth->GetRawMouseY());
709 mOwner->CableGrabbed();
710 }
711}
712
713void PatchCable::Release()
714{

Callers 1

TestClickMethod · 0.80

Calls 4

GetRawMouseXMethod · 0.80
GetRawMouseYMethod · 0.80
CableGrabbedMethod · 0.80
setMethod · 0.45

Tested by 1

TestClickMethod · 0.64