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

Method onMouseEvent

Engine/modules/Verve/GUI/VTimeLineControl.cpp:242–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void VTimeLineControl::onMouseEvent( const char *pEventName, const GuiEvent &pEvent )
243{
244 // Argument Buffers.
245 char argBuffer[3][32];
246
247 // Format Event-Position Buffer.
248 dSprintf( argBuffer[0], 32, "%d %d", pEvent.mousePoint.x, pEvent.mousePoint.y );
249
250 // Format Event-Modifier Buffer.
251 dSprintf( argBuffer[1], 32, "%d", pEvent.modifier );
252
253 // Format Mouse-Click Count Buffer.
254 dSprintf( argBuffer[2], 32, "%d", pEvent.mouseClickCount );
255
256 // Call Scripts.
257 Con::executef( this, pEventName, argBuffer[0], argBuffer[1], argBuffer[2] );
258}
259
260//-----------------------------------------------------------------------------
261//

Callers

nothing calls this directly

Calls 2

dSprintfFunction · 0.85
executefFunction · 0.85

Tested by

no test coverage detected