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
This commit is contained in:
parent
7f845a72dc
commit
df8fe9c476
@ -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. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user