MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / mouseUnlock

Method mouseUnlock

Engine/source/gui/core/guiCanvas.cpp:1640–1658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1638}
1639
1640void GuiCanvas::mouseUnlock(GuiControl *lockingControl)
1641{
1642 if (static_cast<GuiControl*>(mMouseCapturedControl) != lockingControl)
1643 return;
1644
1645 GuiEvent evt;
1646 evt.mousePoint.x = S32(mCursorPt.x);
1647 evt.mousePoint.y = S32(mCursorPt.y);
1648
1649 GuiControl * controlHit = findHitControl(evt.mousePoint);
1650 if(controlHit != mMouseCapturedControl)
1651 {
1652 mMouseControl = controlHit;
1653 mMouseControlClicked = false;
1654 if(bool(mMouseControl))
1655 mMouseControl->onMouseEnter(evt);
1656 }
1657 mMouseCapturedControl = NULL;
1658}
1659
1660void GuiCanvas::paint()
1661{

Callers 10

onMouseDownMethod · 0.45
onMouseDraggedMethod · 0.45
onMouseDownMethod · 0.45
onMouseDraggedMethod · 0.45
startDraggingMethod · 0.45
closePopUpMethod · 0.45
closePopUpMethod · 0.45
onDeactivatedMethod · 0.45
on3DMouseUpMethod · 0.45
processMethod · 0.45

Calls 1

onMouseEnterMethod · 0.45

Tested by

no test coverage detected