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

Method onMouseDown

Engine/source/gui/controls/guiDecoyCtrl.cpp:105–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void GuiDecoyCtrl::onMouseDown(const GuiEvent &event)
106{
107 if ( !mVisible || !mAwake )
108 return;
109
110 mouseLock();
111
112 if(mIsDecoy == true)
113 {
114 mVisible = false;
115
116 GuiControl *parent = getParent();
117 Point2I localPoint = parent->globalToLocalCoord(event.mousePoint);
118
119 GuiControl *tempControl = parent->findHitControl(localPoint);
120 tempControl->onMouseDown(event);
121
122 mVisible = true;
123 }
124
125 execConsoleCallback();
126 setUpdate();
127}
128
129void GuiDecoyCtrl::onMouseMove(const GuiEvent &event)
130{

Callers

nothing calls this directly

Calls 2

globalToLocalCoordMethod · 0.80
findHitControlMethod · 0.45

Tested by

no test coverage detected