From: <be...@us...> - 2012-05-02 16:45:32
|
Revision: 1282 http://freeglut.svn.sourceforge.net/freeglut/?rev=1282&view=rev Author: beuc Date: 2012-05-02 16:45:21 +0000 (Wed, 02 May 2012) Log Message: ----------- Explain why fgPlatformSleepForEvents is no-op under Android Modified Paths: -------------- trunk/freeglut/freeglut/src/android/fg_main_android.c Modified: trunk/freeglut/freeglut/src/android/fg_main_android.c =================================================================== --- trunk/freeglut/freeglut/src/android/fg_main_android.c 2012-05-02 16:44:40 UTC (rev 1281) +++ trunk/freeglut/freeglut/src/android/fg_main_android.c 2012-05-02 16:45:21 UTC (rev 1282) @@ -168,7 +168,13 @@ */ 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. */ } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |