X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fandroid%2Ffg_main_android.c;h=597ae086b1a5e81327a9f56e64498405e6e1efac;hb=41a0008578e0c3dff76f9706920c9a9b062a405d;hp=9d5ebf66db24aee86f6fc2417f2b85a05adc6882;hpb=cb1e59cf5e6ac8034ae91abfd320874004a44c88;p=freeglut diff --git a/src/android/fg_main_android.c b/src/android/fg_main_android.c index 9d5ebf6..597ae08 100644 --- a/src/android/fg_main_android.c +++ b/src/android/fg_main_android.c @@ -138,9 +138,7 @@ static unsigned char key_ascii(struct android_app* app, AInputEvent* event) { } /* - * Handle a window configuration change. When no reshape - * callback is hooked, the viewport size is updated to - * match the new window size. + * Request a window resize */ void fgPlatformReshapeWindow ( SFG_Window *window, int width, int height ) { @@ -168,7 +166,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. */ } /**