MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / ProcessStep

Method ProcessStep

Sources/nCine/MainApplication.cpp:459–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457 }
458
459 void MainApplication::ProcessStep()
460 {
461 if (appCfg_.withGraphics) {
462#if defined(WITH_GLFW) || defined(WITH_SDL)
463 ProcessEvents();
464#elif defined(WITH_QT5GAMEPAD)
465 static_cast<Qt5InputManager&>(*inputManager_).updateJoystickStates();
466#endif
467 }
468
469 const bool suspended = ShouldSuspend();
470 if (wasSuspended_ != suspended) {
471 if (suspended) {
472 Suspend();
473 } else {
474 Resume();
475 }
476 wasSuspended_ = suspended;
477 }
478
479 if (!suspended) {
480 Step();
481 }
482 }
483
484#if defined(WITH_SDL)
485 void MainApplication::ProcessEvents()

Callers 2

RunMethod · 0.80
EmscriptenStepMethod · 0.80

Calls 1

updateJoystickStatesMethod · 0.45

Tested by

no test coverage detected