Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 4 of 4) sorted by relevance

/TwlSDK-5.1.0/build/demos/mb/multiboot-PowerSave/src/
Dmenu.c53 int cursor; member
73 menu_context.cursor = 0; in MenuInit()
99 if (++menu_context.cursor >= MENU_NUM) in MenuUpdate()
100 menu_context.cursor -= MENU_NUM; in MenuUpdate()
104 if (--menu_context.cursor < 0) in MenuUpdate()
105 menu_context.cursor += MENU_NUM; in MenuUpdate()
112 switch (menu_context.cursor) in MenuUpdate()
141 BgPutChar(DISP_OX - 2, DISP_OY + menu_context.cursor, RED, '*'); in MenuDraw()
/TwlSDK-5.1.0/build/demos/fs/explorer/src/
Dmain.c171 int cursor = 0; in NitroMain() local
180 if (++cursor >= explorer->entry_count) in NitroMain()
182 cursor -= explorer->entry_count; in NitroMain()
188 if (--cursor < 0) in NitroMain()
190 cursor += explorer->entry_count; in NitroMain()
197 if (cursor < explorer->entry_count) in NitroMain()
199 if ((explorer->entry[cursor].attributes & FS_ATTRIBUTE_IS_DIRECTORY) != 0) in NitroMain()
201 CommandCD(explorer, explorer->entry[cursor].longname); in NitroMain()
202 cursor = 0; in NitroMain()
210 … (void)STD_TSPrintf(path, "%s/%s", explorer->current, explorer->entry[cursor].longname); in NitroMain()
[all …]
/TwlSDK-5.1.0/build/demos.TWL/nandApp/SubBanner/src/
Dmain.c131 int cursor = 0; in TwlMain() local
153 if( ++cursor == MENU_ELEMENT_NUM ) in TwlMain()
155 cursor=0; in TwlMain()
160 if( --cursor & 0x80 ) in TwlMain()
162 cursor=MENU_ELEMENT_NUM - 1; in TwlMain()
177 DEMOSetBitmapTextColor( i == cursor ? param->select_color : param->normal_color ); in TwlMain()
179 ( i == cursor ? "=>%s" : " %s" ), param->str_elem[i] ); in TwlMain()
188 switch( cursor ) in TwlMain()
/TwlSDK-5.1.0/build/demos/mb/multiboot/src/
Dparent.c46 static u8 cursor = 0; variable
299 cursor = 0; in ParentInit()
465 BgPutChar((s16)(DISP_OX - 2), (s16)(DISP_OY + i), RED, (char)((i == cursor) ? '*' : ' ')); in ParentMain()
507 const u16 aid = (u16)(cursor + 1); in ParentMain()
544 const u16 aid = (u16)(cursor + 1); in ParentMain()
568 (void)RotateU8(&cursor, 0, (u8)(entry_max - 1), 1); in ParentMain()
572 (void)RotateU8(&cursor, 0, (u8)(entry_max - 1), -1); in ParentMain()