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

Method onMouseDragged

Engine/source/Verve/GUI/VEditorButton.cpp:79–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void VEditorButton::onMouseDragged( const GuiEvent &pEvent )
80{
81 if ( !mActive || !mIsDraggable )
82 {
83 return;
84 }
85
86 Parent::onMouseDragged( pEvent );
87
88 if ( !isMouseLocked() )
89 {
90 GuiCanvas *canvas = getRoot();
91 if ( canvas->getMouseLockedControl() )
92 {
93 GuiEvent event;
94 canvas->getMouseLockedControl()->onMouseLeave( event );
95 canvas->mouseUnlock( canvas->getMouseLockedControl() );
96 }
97
98 // Lock.
99 mouseLock();
100 }
101
102 onMouseEvent( "onMouseDragged", pEvent );
103}
104
105void VEditorButton::onRightMouseDown( const GuiEvent &pEvent )
106{

Callers

nothing calls this directly

Calls 4

onMouseDraggedFunction · 0.85
getMouseLockedControlMethod · 0.80
onMouseLeaveMethod · 0.45
mouseUnlockMethod · 0.45

Tested by

no test coverage detected