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

Method checkLockMouseMove

Engine/source/gui/core/guiCanvas.cpp:1223–1235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1221}
1222
1223void GuiCanvas::checkLockMouseMove( const GuiEvent& event )
1224{
1225 GuiControl* controlHit = findHitControl( event.mousePoint );
1226 if( controlHit != mMouseControl )
1227 {
1228 if( mMouseControl == mMouseCapturedControl )
1229 mMouseCapturedControl->onMouseLeave( event );
1230 else if( controlHit == mMouseCapturedControl )
1231 mMouseCapturedControl->onMouseEnter( event );
1232
1233 mMouseControl = controlHit;
1234 }
1235}
1236
1237void GuiCanvas::rootMouseUp(const GuiEvent &event)
1238{

Callers

nothing calls this directly

Calls 2

onMouseLeaveMethod · 0.45
onMouseEnterMethod · 0.45

Tested by

no test coverage detected