From b7bd02c16d2d3522c045ce1854251710f8fa6968 Mon Sep 17 00:00:00 2001 From: Sylvain Beucler Date: Wed, 2 May 2012 16:45:21 +0000 Subject: [PATCH] Explain why fgPlatformSleepForEvents is no-op under Android git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1282 7f0cb862-5218-0410-a997-914c9d46530a --- src/android/fg_main_android.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/android/fg_main_android.c b/src/android/fg_main_android.c index 9d5ebf6..29373ca 100644 --- a/src/android/fg_main_android.c +++ b/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. */ } /** -- 1.7.10.4