MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / torque_directmessage

Function torque_directmessage

Engine/source/cinterface/cinterface.cpp:422–429  ·  view source on GitHub ↗

directly add a message to the Torque 3D event queue, bypassing the Windows event queue this is useful in the case of the IE plugin, where we are hooking into an application level message, and posting to the windows queue would cause a hang

Source from the content-addressed store, hash-verified

420 // this is useful in the case of the IE plugin, where we are hooking into an application
421 // level message, and posting to the windows queue would cause a hang
422 void torque_directmessage(U32 message, U32 wparam, U32 lparam)
423 {
424 if (PlatformWindowManager::get() && PlatformWindowManager::get()->getFirstWindow())
425 {
426 Win32Window* w = (Win32Window*) PlatformWindowManager::get()->getFirstWindow();
427 Dispatch(DelayedDispatch,w->getHWND(),message,wparam,lparam);
428 }
429 }
430
431#endif
432}

Callers 2

GetMessageProcFunction · 0.85
GetMessageProcFunction · 0.85

Calls 3

DispatchFunction · 0.85
getFunction · 0.50
getFirstWindowMethod · 0.45

Tested by

no test coverage detected