src/gfxlib2/gfx_inkey.c
/* Doing synchronization manually here because getkey() is blocking */
Doing synchronization manually here because getkey() is blocking
Doing synchronization manually here because getkey () is blocking
int fb_GfxGetkey(void)
{
	int key = 0;
	while( 1 ) {
		FB_GRAPHICS_LOCK( );
		if (!__fb_gfx) {
			FB_GRAPHICS_UNLOCK( );
			break;
		}
		key = get_key( );
		FB_GRAPHICS_UNLOCK( );
		if( key != 0 ) {
			break;
		}
		fb_Sleep(20);
	}
	return key;
}
int fb_GfxGetkey ( void ) { int key = 0 ; while ( 1 ) { FB_GRAPHICS_LOCK ( ) ; if ( ! __fb_gfx ) { FB_GRAPHICS_UNLOCK ( ) ; break ; } key = get_key ( ) ; FB_GRAPHICS_UNLOCK ( ) ; if ( key != 0 ) { break ; } fb_Sleep ( 20 ) ; } return key ; }
Doing synchronization manually here because getkey() is blocking
Doing synchronization manually here because getkey () is blocking
/* Poll until next key press */ /* Abort if gfx screen was closed */