This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

为什么这样就设置了一个事件

RegisterForKeys( GenericApp_TaskID );  //注册所有的按键事件

uint8 RegisterForKeys( uint8 task_id )

 {  

 if ( registeredKeysTaskID == NO_TASK_ID )  

 {     registeredKeysTaskID = task_id;     return ( true );   }  

 else     return ( false );

}