MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / processInputEvents

Function processInputEvents

src/bzflag/guiplaying.cpp:2880–2890  ·  view source on GitHub ↗

process pending input events

Source from the content-addressed store, hash-verified

2878
2879// process pending input events
2880void processInputEvents(float maxProcessingTime) {
2881 if (mainWindow && display) {
2882 BzTime start = BzTime::getCurrent();
2883 while (display->isEventPending() &&
2884 !CommandsStandard::isQuit() &&
2885 (BzTime::getCurrent() - start < maxProcessingTime)) {
2886 // process one event
2887 doEvent(display);
2888 }
2889 }
2890}
2891
2892
2893static void updateExplosions(float dt) {

Callers 1

playingLoopFunction · 0.85

Calls 2

doEventFunction · 0.85
isEventPendingMethod · 0.45

Tested by

no test coverage detected