MCPcopy Create free account
hub / github.com/SFML/SFML / onResume

Function onResume

src/SFML/Main/MainAndroid.cpp:269–280  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

267
268////////////////////////////////////////////////////////////
269void onResume(ANativeActivity* activity)
270{
271 // Retrieve our activity states from the activity instance
272 sf::priv::ActivityStates& states = retrieveStates(*activity);
273 const std::lock_guard lock(states.mutex);
274
275 if (states.fullscreen)
276 goToFullscreenMode(*activity);
277
278 // Send an event to warn people the activity has been resumed
279 states.forwardEvent(sf::Event::MouseEntered{});
280}
281
282////////////////////////////////////////////////////////////
283void onPause(ANativeActivity* activity)

Callers

nothing calls this directly

Calls 2

goToFullscreenModeFunction · 0.85
forwardEventMethod · 0.80

Tested by

no test coverage detected