2、
得到當前的 u8keycode
3、while(1)迴圈
3.1、在剛開機時,首先 entopstate = state_top_digitalinputs 等待使用者輸入;
3.3、當使用者在ir中輸入menu按鍵;
switch ( u8keycode )
case key_menu:
entvstate = state_tv_init;
entvretval = exit_goto_menu;
u8keycode = key_null;
break;
case exit_goto_menu:
entopstate = state_top_menu;
break;
enmainmenustate = state_menu_wait;
_ezuistate = e_zui_state_running;
u8keycode = key_null;了;
if (pmsg->message == msg_keydown)}}
#if zui_dbg_recursive
_bindispatchmessage = 0;
#endif //zui_dbg_recursive
return iret;
}3.10、由focus = getwndfocus();得到當前win的focus
getwndprocid(focus),得到當前win的型別(有en_zui_defaultwinproc、en_zui_flippage_winproc、en_zui_effect_winproc等型別)
pmsg:收到的訊息,在本例中收到是按鍵。
本例會執行以下語句:
if (getwndkeyevent(focus))
keyevent++;}
for example:
static keyevent _zui_tblseg _menu_picture_mode_key =,,
,,,,
,,};3.15、以按左右鍵為例:
switch(act)
case en_exe_effect_flippage_left:
case en_exe_effect_flippage_right:
;hwnd hwndeffect = hwndfocus;
hwnd hwndnext = hwnd_invalid;
en_flippage dir = en_flippage_none;
/******若當前不是第0個index page則
要找到當前功能的首個page 即屬性為en_zui_flippage_winproc的page**************/
}/******若當前不是第0個index page則
要找到當前功能的首個page 即屬性為en_zui_flippage_winproc的page**************/
if ( hwndeffect == hwnd_mainframe )
return true;
if ( u32data == 0 )
return true;
u32 i;
for (i=0; i
if ( i >= countof(hwndtop) )
return true;
if (act == en_exe_effect_flippage_left)
else if (act == en_exe_effect_flippage_right)
hwnd child, last_succ; //2008/4/12: get last successor once
hwnd listwn = hwndnext+2;
for (child = listwn+1; child <= last_succ; child++)
gui_data_flippage *windata = (gui_data_flippage *) u32data;
windata->pvardata->hwndcurrent = hwndeffect;
windata->pvardata->hwndnext = hwndnext;
/*if(windata->pvardata->hwndnext == hwnd_menu_lock_page)
*/#if enable_dtv
if(windata->pvardata->hwndnext == hwnd_menu_lock_page)
stgensetting.g_blocksyssetting.u8enterlockpage = 0;
#endif
if(child == last_succ)
windata->pvardata->hwndnextfocus = windata->pvardata->hwndnext+3;
else
windata->pvardata->hwndnextfocus = child;
windata->pvardata->dir = dir;
return true;
ES6部分語法
1 當物件的key和value名稱一致時,可以縮寫成乙個。components 等同於 components 2 data 等同於data function data 等同於 data function 3 是箭頭函式 render function h 也等同於 render h 4 在es6語法...
牛客練習賽48 部分題解
b.小w的a b問題 思路 把階乘hash就行 include define ll long long using namespace std const int maxn 1e5 10,n 1e5 const int mod1 1e9 7,mod2 998244353 ll p1 maxn p2 ...
ES6部分特性小結
es6之前宣告變數只能用var,var的特點是無論宣告在何處,都會被視為宣告在函式的最頂部 不在函式內即在全域性作用域的最頂部 function test else console.log name 此處訪問值為undefined 可以看到雖然列印結果是undefined,但是並沒有報錯。那是因為被...