EventGet
Description
À̺¥Æ® Å¥¿¡ ½×¿© ÀÖ´Â À̺¥Æ®°¡ ÀÖÀ¸¸é ±×°ÍÀ» event°¡ °¡¸®Å°´Â ¿µ¿ª¿¡ ´ã°í TRUE¸¦ ¸®ÅÏÇÏ°í ¾Æ´Ï¸é ÀÎÅÍ·´Æ®·ÎºÎÅÍ À̺¥Æ®¸¦ ÀÐ¾î¼ À̺¥Æ® Å¥¿¡ ½×´Â´Ù. ÇöÀç À̺¥Æ® Å¥¿¡ ¸Þ½ÃÁö°¡ Çϳªµµ ¾øÀ¸¸é ÇÔ¼ö°¡ FALSE¸¦ ¸®ÅÏÇÑ´Ù.
Syntax
U8 EventGet( EventStruct * event )
Parameters
Event À̺¥Æ® Å¥·ÎºÎÅÍ ¾ò¾îÁö´Â À̺¥Æ®
Returns
value
¼³¸í
TRUE
À̺¥Æ®¸¦ À̺¥Æ® Å¥·ÎºÎÅÍ ¾ò¾î¿Â °æ¿ì
FASLE
À̺£Æ® Å¥¿¡ À̺¥Æ®°¡ ¾ø´Â °æ¿ì
Comments
Example
´ë°³ÀÇ ÇÁ·Î±×·¥Àº À̺¥Æ®¸¦ ¹Þ¾Æ¼ ó¸®Çϱâ À§ÇÏ¿© ´ÙÀ½°ú °°Àº ±¸Á¶ÀÇ À̺¥Æ® ·çÇÁ¸¦ ÇÁ·Î±×·¥ÀÇ ½ÃÀÛ ºÎºÐ¿¡ µÎ°Ô µÈ´Ù.
STATUS AppMain(U32 cmd, P_U32 param)
{
EventStruct event;
STATUS retVal = CVOS_OK;
if( cmd == NORMAL_START )
{
do {
while( !EventGet( &event ) )
/* NULL LOOP */
;
if( !SystemHandleEvent( &event ) )
if( !MenuHandleEvent( &event ) )
if( !mmApplicationHandleEvent( &event ) )
FormDispatchEvent( &event );
} while( event.EventType != APPSTOPEVENT );
}
return retVal;
}