IARM_UIEventSimulator.c
void sendKeyEventToCMAF(int keyType, int keyCode)
{

#ifdef TRACE
	printf("[FUNC] %s [LINE] %d\n", __FUNCTION__, __LINE__);
#endif

	printf("Sending Key (%x, %x) from %s\r\n", keyType, keyCode, executableName);

	UIDev_EventData_t *eventData = NULL;
	CMAF_Malloc(m_grpCtx, CMAF_MEMTYPE_PROCESSSHARE, sizeof(UIDev_EventData_t), (void **) &eventData);
	eventData->id = UIDEV_EVENT_IRKEY;
	eventData->data.irkey.keyType = keyType;
	eventData->data.irkey.keyCode = keyCode;
	CMAF_NotifyEvent(m_grpCtx, (CMAF_EventId_t) UIDEV_EVENT_IRKEY, (void *) eventData);
}
/**
 * @brief send the key type and key code to CMAF
 *
 * @return CMAF_Result_t Error Code.
 */
@brief send the key type and key code to CMAF
@return CMAF_Result_t Error Code.
@brief send the key type and key code to CMAF @return CMAF_Result_t Error Code .
void sendKeyEventToCMAF(int keyType, int keyCode)
{
#ifdef TRACE
	printf("[FUNC] %s [LINE] %d\n", __FUNCTION__, __LINE__);
#endif
	printf("Sending Key (%x, %x) from %s\r\n", keyType, keyCode, executableName);
	UIDev_EventData_t *eventData = NULL;
	CMAF_Malloc(m_grpCtx, CMAF_MEMTYPE_PROCESSSHARE, sizeof(UIDev_EventData_t), (void **) &eventData);
	eventData->id = UIDEV_EVENT_IRKEY;
	eventData->data.irkey.keyType = keyType;
	eventData->data.irkey.keyCode = keyCode;
	CMAF_NotifyEvent(m_grpCtx, (CMAF_EventId_t) UIDEV_EVENT_IRKEY, (void *) eventData);
}
void sendKeyEventToCMAF ( int keyType , int keyCode ) { #ifdef TRACE printf ( " \n " , __FUNCTION__ , __LINE__ ) ; #endif printf ( " \r \n " , keyType , keyCode , executableName ) ; UIDev_EventData_t * eventData = NULL ; CMAF_Malloc ( m_grpCtx , CMAF_MEMTYPE_PROCESSSHARE , sizeof ( UIDev_EventData_t ) , ( void * * ) & eventData ) ; eventData -> id = UIDEV_EVENT_IRKEY ; eventData -> data . irkey . keyType = keyType ; eventData -> data . irkey . keyCode = keyCode ; CMAF_NotifyEvent ( m_grpCtx , ( CMAF_EventId_t ) UIDEV_EVENT_IRKEY , ( void * ) eventData ) ; }
@brief send the key type and key code to CMAF
 @return CMAF_Result_t Error Code.
@brief send the key type and key code to CMAF @return CMAF_Result_t Error Code .