本文整理汇总了C++中SetKeyHandler函数的典型用法代码示例。如果您正苦于以下问题:C++ SetKeyHandler函数的具体用法?C++ SetKeyHandler怎么用?C++ SetKeyHandler使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SetKeyHandler函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: game_simu_highlight
void game_simu_highlight(void)
{
SetLeftSoftkeyFunction(EntryRomList, KEY_EVENT_UP);
SetKeyHandler(EntryRomList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
示例2: HighlightGPRSCount
/*****************************************************************************
* FUNCTION
* HighlightGPRSCount
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void HighlightGPRSCount(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
#ifdef __MMI_GPRS_UNIT_TEST__
gprsTotalSent = 0;
gprsTotalReceived = 1025;
gprsLastSent = 1048533;
gprsLastReceived = 11048576;
SetKeyHandler(EntryScrGPRSCounter, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
SetLeftSoftkeyFunction(EntryScrGPRSCounter, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
#else /* __MMI_GPRS_UNIT_TEST__ */
SetKeyHandler(GetGPRSCountersRequest, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
SetLeftSoftkeyFunction(GetGPRSCountersRequest, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
#endif /* __MMI_GPRS_UNIT_TEST__ */
return;
}
示例3: EntryBMIWelcomeScreen
/*****************************************************************************
* FUNCTION
* EntryBMIWelcomeScreen
* DESCRIPTION
* Display welcome screen of BMI application
* PARAMETERS
* None
* RETURNS
* None
* GLOBALS AFFECTED
* None
*****************************************************************************/
void EntryBMIWelcomeScreen(void)
{
U8 *guiBuffer;
EntryNewScreen(SCR_BMI_WELCOME, NULL, EntryBMIWelcomeScreen, NULL);
guiBuffer = GetCurrGuiBuffer(SCR_BMI_WELCOME);
if(g_bmi_cntx == NULL)
g_bmi_cntx = OslMalloc(sizeof(bmi_context_struct));
memset(g_bmi_cntx, 0, sizeof(bmi_context_struct));
ShowCategory129Screen((U8*)get_string(STR_BMI_WELCOME_CAPTION), GetRootTitleIcon(ORGANIZER_HEALTH_MENU),
STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
IMG_BMI_WELCOME_SCREEN, guiBuffer);
SetLeftSoftkeyFunction(EntryBMIInputScreen ,KEY_EVENT_UP);
SetRightSoftkeyFunction(BmiFreeMemAndGoBack,KEY_EVENT_UP);
#ifdef __MMI_NOKIA_STYLE_N800__
ClearKeyHandler( KEY_LSK, KEY_EVENT_DOWN);
ClearKeyHandler( KEY_RSK, KEY_EVENT_DOWN);
SetKeyHandler(EntryBMIInputScreen , KEY_LSK, KEY_EVENT_UP);
SetKeyHandler(BmiFreeMemAndGoBack , KEY_RSK, KEY_EVENT_UP);
#endif
}
示例4: csb_frm_start_view_auto
/*************************************************************
** FUNCTION NAME : csb_frm_start_view_auto
**
** PURPOSE : Enrty function for CSB Start View
** in Auto Mode
**
** INPUT PARAMETERS : nil
**
** OUTPUT PARAMETERS : void
**
** RETURNS : void
**
** REMARKS :
***************************************************************/
void csb_frm_start_view_auto(void)
{
/* Stop the time if started */
StopTimer(CSB_AUTO_MODE_TIMER_ID);
if(g_CSB_struct.screen_counter < TOTAL_CATEGORY_SCREENS)
{
/* ASSERT if entryFunPtr is NULL -- should never happen */
ASSERT(g_CSB_struct.pscreen_info[g_CSB_struct.screen_counter].entryFuncPtr != NULL);
/* Call the entry function pointer */
g_CSB_struct.pscreen_info[g_CSB_struct.screen_counter++].entryFuncPtr();
SetKeyHandler(GoBackToMainMenu, KEY_END, KEY_EVENT_DOWN);
SetKeyHandler(csb_show_current_screen_ID, KEY_SEND, KEY_EVENT_DOWN);
/* Delete the history nodes added after every call */
DeleteUptoScrID(SCR_ID_CSB_VIEW_SCR_ID);
/* Start the timer */
StartTimer(CSB_AUTO_MODE_TIMER_ID, g_CSB_struct.csb_settings.timer_value, csb_frm_start_view_auto);
}
else
{
g_CSB_struct.screen_counter = 0;
DeleteUptoScrID(SCR_ID_CSB_VIEW_SCR_ID);
GoBackHistory();
/* Backlight was turned ON permanently while entering AUTO mode, turn ON it temporary now */
TurnOffBacklight();
/* Release the EMS buffer */
ReleaseEMSEditBuffer();
}
}
示例5: mmi_nfc_entry_progress_screen
/*****************************************************************************
* FUNCTION
* mmi_nfc_entry_progress_screen
* DESCRIPTION
* This function is to enter progress screen when nfc mode is switching
* PARAMETERS
* void
*
*
* RETURNS
* void
*****************************************************************************/
static void mmi_nfc_entry_progress_screen(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if(!mmi_frm_scrn_enter(
GRP_ID_NFC_SETTINGS,
SCR_ID_NFC_PROGRESS,
NULL,
(FuncPtr)mmi_nfc_entry_progress_screen,
MMI_FRM_UNKNOW_SCRN))
{
return;
}
SetKeyHandler(MMI_dummy_function, KEY_END, KEY_EVENT_DOWN);
SetKeyHandler(MMI_dummy_function, KEY_END, KEY_EVENT_UP);
ShowCategory66Screen(
STR_ID_NFC_SETTING,
MAIN_MENU_CONNECTIVITY_ICON,
0,
0,
0,
0,
(PU8) GetString(STR_ID_NFC_PROGRESS),
mmi_get_event_based_image(MMI_EVENT_PROGRESS),
NULL);
//mmi_frm_scrn_set_leave_proc(GRP_ID_NFC_SETTINGS, SCR_ID_NFC_SETTINGS, mmi_flight_mode_progress_leave_proc);
}
示例6: Entry_SP_Level1
/*****************************************************************************
FUNCTION NAME : void Entry_SP_Level1(void)
PURPOSE : From level1 go to next screen .
The association between entry function and menu as following
Entry_MobileEden Entry_SP_Level1 SP_Pre_Entry_Level2
| | |
| /Level1/ | /Level2/ |
Mobile Paradise | | |
->New Style World |
---->Joke
-------->Request
-------->Price Explanation
...
<----- <-----
SP_EDEN_GoBackHistory SP_Level1_GoBackHistory
eg. when into Mobile Paradise ->New Style World->, this function will be
called.
INPUT PARAMETERS : void
OUTPUT PARAMETERS : void
RETURNS : void
******************************************************************************/
void Entry_SP_Level1(void)
{
U16 nStrItemList[SP_MAX_SUB_MENUS]; /* Stores the strings id of submenus returned */
U16 nNumofItem; /* Stores no of children in the submenu*/
U8* guiBuffer; /* Buffer holding history data */
mmi_trace(g_sw_SP,"niej Entry_SP_Level1 sp_level1_scr.sp_scr_id[%d],sp_level1_scr.sp_menu_id[%d]",
sp_level1_scr.sp_scr_id, sp_level1_scr.sp_menu_id);
EntryNewScreen(sp_level1_scr.sp_scr_id, NULL, Entry_SP_Level1, NULL);
guiBuffer = GetCurrGuiBuffer(sp_level1_scr.sp_scr_id);
nNumofItem = GetNumOfChild(sp_level1_scr.sp_menu_id);
GetSequenceStringIds_Ext(sp_level1_scr.sp_menu_id, nStrItemList);
SetParentHandler(sp_level1_scr.sp_menu_id);
RegisterHighlightHandler (SP_Level_2_Get_Index);
ShowCategory52Screen(GetStringIdOfItem(sp_level1_scr.sp_menu_id),
MAIN_MENU_TITLE_FUNANDGAMES_ICON,
STR_GLOBAL_OK, IMG_GLOBAL_OK,
STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
nNumofItem,nStrItemList,(PU16)gIndexIconsImageList,
NULL,
0,0,guiBuffer);
SetLeftSoftkeyFunction (SP_Pre_Entry_Level2, KEY_EVENT_UP);
SetKeyHandler (SP_Pre_Entry_Level2, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
SetRightSoftkeyFunction(SP_Level1_GoBackHistory,KEY_EVENT_UP);
SetKeyHandler(SP_Level1_GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
示例7: mmi_rmgr_list_ro_option_highlight_hdlr
/*****************************************************************************
* FUNCTION
* mmi_rmgr_list_ro_option_highlight_hdlr
* DESCRIPTION
* Highlight handler of the list ro option screen
* PARAMETERS
* menu_idx [IN] Menu item index
* RETURNS
* void
*****************************************************************************/
static void mmi_rmgr_list_ro_option_highlight_hdlr(S32 menu_idx)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (menu_idx == 0)
{
mmi_rmgr_list_ro_set_execute_key_hdlr(mmi_rmgr_list_ro_entry_detail);
SetKeyHandler(mmi_rmgr_list_ro_entry_detail, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
}
else if (menu_idx == 1)
{
delete_hdlr = mmi_rmgr_list_ro_delete_entry;
mmi_rmgr_list_ro_set_execute_key_hdlr(mmi_rmgr_list_ro_entry_delete);
SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
}
else
{
delete_hdlr = mmi_rmgr_list_ro_delete_all_entry;
mmi_rmgr_list_ro_set_execute_key_hdlr(mmi_rmgr_list_ro_entry_delete);
SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
}
}
示例8: I51_mmi_menu_highlight
void I51_mmi_menu_highlight (void)
{
SetLeftSoftkeyFunction (I51_menu_entry,KEY_EVENT_UP);
SetKeyHandler (I51_menu_entry,KEY_RIGHT_ARROW,KEY_EVENT_DOWN);
SetRightSoftkeyFunction (GoBackHistory, KEY_EVENT_UP);
SetKeyHandler (GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
示例9: mmi_snowfish_profile_highlight_app
void mmi_snowfish_profile_highlight_app(void)
{
SetLeftSoftkeyFunction(mmi_snowfish_profile_entry_app_screen,KEY_EVENT_UP);
SetKeyHandler(mmi_snowfish_profile_entry_app_screen, KEY_RIGHT_ARROW,KEY_EVENT_DOWN);
SetKeyHandler(GoBackHistory,KEY_LEFT_ARROW,KEY_EVENT_DOWN);
SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
}
示例10: Highlight_SP_MenuItem
void Highlight_SP_MenuItem(void (*func)(void))
{
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
ChangeRightSoftkey(STR_GLOBAL_BACK,IMG_GLOBAL_BACK);
SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
SetLeftSoftkeyFunction(func,KEY_EVENT_UP);
SetKeyHandler(func, KEY_RIGHT_ARROW,KEY_EVENT_DOWN);
SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
}
示例11: HighlightCALLSETCallBarringIncoming
void HighlightCALLSETCallBarringIncoming(void)
{
/* Change right soft key icon and label */
SetLeftSoftkeyFunction (EntryCALLSETBarringIn,KEY_EVENT_UP);
SetRightSoftkeyFunction (GoBackHistory,KEY_EVENT_UP);
/* set the left/right arrow key function handlers */
SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
SetKeyHandler(EntryCALLSETBarringIn, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
return;
}
示例12: HighlightBMIMenu
/*****************************************************************************
* FUNCTION
* HighlightBMIMenu
* DESCRIPTION
* Highlight handler of BMI menu item.
* Register key handlers.
* PARAMETERS
* None.
* RETURNS
* None.
* GLOBALS AFFECTED
* None
*****************************************************************************/
void HighlightBMIMenu(void)
{
#if 0
SetLeftSoftkeyFunction(EntryBMIWelcomeScreen,KEY_EVENT_UP);
SetKeyHandler(EntryBMIWelcomeScreen,KEY_RIGHT_ARROW,KEY_EVENT_DOWN);
#else
SetLeftSoftkeyFunction(EntryBMIInputScreen ,KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
SetKeyHandler(EntryBMIInputScreen,KEY_RIGHT_ARROW,KEY_EVENT_DOWN);
#endif
}
示例13: HighlightCALLSETCallBarringAllInRoaming
/**************************************************************
FUNCTION NAME : HighlightCALLSETCallBarringAllInRoaming(void)
PURPOSE : highlight handler for call barring incoming on roaming calls.
INPUT PARAMETERS : nil
OUTPUT PARAMETERS : nil
RETURNS : void
**************************************************************/
void HighlightCALLSETCallBarringAllInRoaming(void)
{
/* storing the menu item selected */
g_callset_cntx_p->SSBarType = BARRING_INCOMING_ROAMING ;
/* set the left/right soft key functions handlers */
SetLeftSoftkeyFunction (EntryCALLSETBarringOption,KEY_EVENT_UP);
SetRightSoftkeyFunction (GoBackHistory,KEY_EVENT_UP);
/* set the left/right arrow key function handlers */
SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
SetKeyHandler(EntryCALLSETBarringOption, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
return;
}
示例14: HighlightCALLSETCallBarring
/**************************************************************
FUNCTION NAME : HighlightCALLSETCallBarring(void)
PURPOSE : highlite handler for call barring menu item
INPUT PARAMETERS : nil
OUTPUT PARAMETERS : nil
RETURNS : void
**************************************************************/
void HighlightCALLSETCallBarring(void)
{
/* Change left/right soft key icon and label */
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
ChangeRightSoftkey(STR_GLOBAL_BACK,IMG_GLOBAL_BACK);
/* set the left/right soft key functions handlers */
SetLeftSoftkeyFunction (EntryCALLSETBarringMain,KEY_EVENT_UP);
SetRightSoftkeyFunction (GoBackHistory,KEY_EVENT_UP);
/* set the left/right arrow key function handlers */
SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
SetKeyHandler(EntryCALLSETBarringMain, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
return;
}
示例15: mmi_dailer_word_hdlr
void mmi_dailer_word_hdlr(S32 index)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
MMI_BOOL result;
S32 dynamicItems;
if(IsInDialerSrc() && !IsFocusOnInputBox())
register_dynamic_list_keys();
else
{
if(g_dialer_focus_on_inputbox)
{
SetKeyHandler(NULL, KEY_UP_ARROW, KEY_EVENT_DOWN);
SetKeyHandler(NULL, KEY_VOL_UP, KEY_EVENT_DOWN);
SetKeyHandler(chang_dialer_focus, KEY_DOWN_ARROW, KEY_EVENT_DOWN);
SetKeyHandler(chang_dialer_focus, KEY_VOL_DOWN, KEY_EVENT_DOWN);
}
else
{
SetKeyHandler(chang_dialer_focus, KEY_UP_ARROW, KEY_EVENT_DOWN);
SetKeyHandler(chang_dialer_focus, KEY_VOL_UP, KEY_EVENT_DOWN);
SetKeyHandler(NULL, KEY_DOWN_ARROW, KEY_EVENT_DOWN);
SetKeyHandler(NULL, KEY_VOL_DOWN, KEY_EVENT_DOWN);
}
}
category658_highlight_handler(index);
}