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

Function Dispatch

Engine/source/windowManager/win32/winDispatch.cpp:571–579  ·  view source on GitHub ↗

Dispatch the window event, or queue up for later

Source from the content-addressed store, hash-verified

569
570// Dispatch the window event, or queue up for later
571void Dispatch(DispatchType type,HWND hWnd,UINT message,WPARAM wparam,WPARAM lparam)
572{
573 // If the message queue is not empty, then we'll need to delay
574 // this dispatch in order to preserve message order.
575 if (type == DelayedDispatch || !_MessageQueue.isEmpty())
576 _MessageQueue.post(hWnd,message,wparam,lparam);
577 else
578 _dispatch(hWnd,message,wparam,lparam);
579}
580
581// Dispatch next even in the queue
582bool DispatchNext()

Callers 3

_processMethod · 0.85
WindowProcMethod · 0.85
torque_directmessageFunction · 0.85

Calls 3

_dispatchFunction · 0.85
isEmptyMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected