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

Method cursorClick

Engine/source/gui/core/guiCanvas.cpp:573–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573void GuiCanvas::cursorClick(S32 buttonId, bool isDown)
574{
575 InputEventInfo inputEvent;
576 inputEvent.deviceType = MouseDeviceType;
577 inputEvent.deviceInst = 0;
578 inputEvent.objType = SI_BUTTON;
579 inputEvent.objInst = (InputObjectInstances)(KEY_BUTTON0 + buttonId);
580 inputEvent.modifier = (InputModifiers)0;
581 inputEvent.ascii = 0;
582 inputEvent.action = isDown ? SI_MAKE : SI_BREAK;
583 inputEvent.fValue = isDown ? 1.0 : 0.0;
584
585 processMouseEvent(inputEvent);
586}
587
588void GuiCanvas::cursorNudge(F32 x, F32 y)
589{

Callers 1

DefineEngineMethodFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected