MCPcopy Create free account
hub / github.com/ZDoom/Raze / I_GetEvent

Function I_GetEvent

source/common/platform/win32/i_input.cpp:582–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582void I_GetEvent ()
583{
584 MSG mess;
585
586 // Briefly enter an alertable state so that if a secondary thread
587 // crashed, we will execute the APC it sent now.
588 SleepEx (0, TRUE);
589
590 while (PeekMessage (&mess, NULL, 0, 0, PM_REMOVE))
591 {
592 if (mess.message == WM_QUIT)
593 throw CExitEvent(mess.wParam);
594
595 if (GUICapture)
596 {
597 TranslateMessage (&mess);
598 }
599 DispatchMessage (&mess);
600 }
601
602 if (Keyboard != NULL)
603 {
604 Keyboard->ProcessInput();
605 }
606 if (Mouse != NULL)
607 {
608 Mouse->ProcessInput();
609 }
610}
611
612//
613// I_StartTic

Callers 8

I_StartTicFunction · 0.70
StartGameMethod · 0.50
StartGameMethod · 0.50
PreloadCacheFunction · 0.50
S_CacheAllSoundsFunction · 0.50
getInputMethod · 0.50
RenderMethod · 0.50
RunEndoomFunction · 0.50

Calls 2

CExitEventClass · 0.85
ProcessInputMethod · 0.45

Tested by

no test coverage detected