diff options
author | dhewg | 2011-03-02 20:25:47 +0100 |
---|---|---|
committer | dhewg | 2011-03-02 23:18:35 +0100 |
commit | 25ef065a4172443eebdd1031c8a387f30f930ec4 (patch) | |
tree | c1c2a5db309e94469449d4c449b814ad4e58df8f /backends/platform/android/jni.h | |
parent | ccfe427eb542235070e8576b4cc47217d92046fd (diff) | |
download | scummvm-rg350-25ef065a4172443eebdd1031c8a387f30f930ec4.tar.gz scummvm-rg350-25ef065a4172443eebdd1031c8a387f30f930ec4.tar.bz2 scummvm-rg350-25ef065a4172443eebdd1031c8a387f30f930ec4.zip |
ANDROID: Implement pause/resume
Don't just kill the whole process when the Activity is stopped. Instead,
use its events to pause or resume audio and the running engine (if any).
Of course not every engines implements that... but at least an incoming
call doesn't kill the game now (lol).
Diffstat (limited to 'backends/platform/android/jni.h')
-rw-r--r-- | backends/platform/android/jni.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/android/jni.h b/backends/platform/android/jni.h index d2bc89e3d1..7eb10791aa 100644 --- a/backends/platform/android/jni.h +++ b/backends/platform/android/jni.h @@ -129,6 +129,8 @@ private: static void pushEvent(JNIEnv *env, jobject self, jobject java_event); static void enableZoning(JNIEnv *env, jobject self, jboolean enable); + + static void pauseEngine(JNIEnv *env, jobject self, jboolean pause); }; inline bool JNI::haveSurface() { |