Pauses ticking the application. When paused, sensor and input events will still be processed, but the update and render parts of the loop will not run.
| 127 | /// When paused, sensor and input events will still be processed, but the |
| 128 | /// update and render parts of the loop will not run. |
| 129 | void Pause() { |
| 130 | // This is called whenever something interrupts the activity and moves it |
| 131 | // into the background. In multiwindow mode the app might still be visible, |
| 132 | // but it is no longer the focused app and should pause accordingly, |
| 133 | running_ = false; |
| 134 | } |
| 135 | |
| 136 | private: |
| 137 | android_app* app_; |