From df8fe9c476b83ce017a762587f38b190501bbb7b Mon Sep 17 00:00:00 2001 From: beuc Date: Wed, 2 May 2012 16:45:21 +0000 Subject: [PATCH] Explain why fgPlatformSleepForEvents is no-op under Android git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1282 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/android/fg_main_android.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/android/fg_main_android.c b/freeglut/freeglut/src/android/fg_main_android.c index 9d5ebf6..29373ca 100644 --- a/freeglut/freeglut/src/android/fg_main_android.c +++ b/freeglut/freeglut/src/android/fg_main_android.c @@ -168,7 +168,13 @@ unsigned long fgPlatformSystemTime ( void ) */ void fgPlatformSleepForEvents( long msec ) { - /* fprintf(stderr, "fgPlatformSleepForEvents: STUB\n"); */ + /* Android's NativeActivity relies on a Looper/ALooper object to + notify about events. The Looper object is plugged on two + internal pipe(2)s to detect system and input events. Sadly you + can only ask the Looper for an event, not just ask whether + there is a pending event (and process it later). Consequently, + short of redesigning NativeActivity, we cannot + SleepForEvents. */ } /**