///////////////////////////////////////////////////////
| 281 | |
| 282 | //////////////////////////////////////////////////////////// |
| 283 | void onPause(ANativeActivity* activity) |
| 284 | { |
| 285 | // Retrieve our activity states from the activity instance |
| 286 | sf::priv::ActivityStates& states = retrieveStates(*activity); |
| 287 | const std::lock_guard lock(states.mutex); |
| 288 | |
| 289 | // Send an event to warn people the activity has been paused |
| 290 | states.forwardEvent(sf::Event::MouseLeft{}); |
| 291 | } |
| 292 | |
| 293 | //////////////////////////////////////////////////////////// |
| 294 | void onStop(ANativeActivity* /* activity */) |
nothing calls this directly
no test coverage detected