mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Corrected a small bug about status bar not refreshing the clock in menus on archos, added some H1x0 remote key bindings (thanks Stephan Wezel for the patch ! )
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7698 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
65fe5f144d
commit
b83dc3861e
5 changed files with 28 additions and 8 deletions
12
apps/menu.c
12
apps/menu.c
|
@ -43,7 +43,6 @@
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
#include "icons.h"
|
#include "icons.h"
|
||||||
//#include "widgets.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* gui api */
|
/* gui api */
|
||||||
|
@ -156,8 +155,13 @@ int menu_show(int m)
|
||||||
#endif
|
#endif
|
||||||
#ifdef MENU_RC_ENTER
|
#ifdef MENU_RC_ENTER
|
||||||
case MENU_RC_ENTER:
|
case MENU_RC_ENTER:
|
||||||
|
#endif
|
||||||
|
#ifdef MENU_RC_ENTER2
|
||||||
|
case MENU_RC_ENTER2:
|
||||||
#endif
|
#endif
|
||||||
return gui_synclist_get_sel_pos(&(menus[m].synclist));
|
return gui_synclist_get_sel_pos(&(menus[m].synclist));
|
||||||
|
|
||||||
|
|
||||||
case MENU_EXIT:
|
case MENU_EXIT:
|
||||||
#ifdef MENU_EXIT2
|
#ifdef MENU_EXIT2
|
||||||
case MENU_EXIT2:
|
case MENU_EXIT2:
|
||||||
|
@ -168,7 +172,10 @@ int menu_show(int m)
|
||||||
#ifdef MENU_RC_EXIT
|
#ifdef MENU_RC_EXIT
|
||||||
case MENU_RC_EXIT:
|
case MENU_RC_EXIT:
|
||||||
#endif
|
#endif
|
||||||
lcd_stop_scroll();
|
#ifdef MENU_RC_EXIT_MENU
|
||||||
|
case MENU_RC_EXIT_MENU:
|
||||||
|
#endif
|
||||||
|
//lcd_stop_scroll();
|
||||||
exit = true;
|
exit = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -177,6 +184,7 @@ int menu_show(int m)
|
||||||
return MENU_ATTACHED_USB;
|
return MENU_ATTACHED_USB;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
gui_syncstatusbar_draw(&statusbars, false);
|
||||||
}
|
}
|
||||||
return MENU_SELECTED_EXIT;
|
return MENU_SELECTED_EXIT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,10 @@
|
||||||
#define MENU_ENTER2 BUTTON_SELECT
|
#define MENU_ENTER2 BUTTON_SELECT
|
||||||
|
|
||||||
#define MENU_RC_EXIT BUTTON_RC_STOP
|
#define MENU_RC_EXIT BUTTON_RC_STOP
|
||||||
|
#define MENU_RC_EXIT_MENU BUTTON_RC_MODE
|
||||||
#define MENU_RC_ENTER BUTTON_RC_ON
|
#define MENU_RC_ENTER BUTTON_RC_ON
|
||||||
|
#define MENU_RC_ENTER2 BUTTON_RC_MENU
|
||||||
|
|
||||||
|
|
||||||
#elif CONFIG_KEYPAD == RECORDER_PAD
|
#elif CONFIG_KEYPAD == RECORDER_PAD
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* \/ \/ \/ \/ \/
|
* \/ \/ \/ \/ \/
|
||||||
* $Id$
|
* $Id$
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 Björn Stenberg
|
* Copyright (C) 2002 Bj<EFBFBD>n Stenberg
|
||||||
*
|
*
|
||||||
* All files in this archive are subject to the GNU General Public License.
|
* All files in this archive are subject to the GNU General Public License.
|
||||||
* See the file COPYING in the source tree root for full license agreement.
|
* See the file COPYING in the source tree root for full license agreement.
|
||||||
|
@ -510,7 +510,11 @@ static int onplay_callback(int key, int menu)
|
||||||
{
|
{
|
||||||
(void)menu;
|
(void)menu;
|
||||||
|
|
||||||
if (key == MENU_EXIT_MENU)
|
if (key == MENU_EXIT_MENU
|
||||||
|
#ifdef MENU_RC_EXIT_MENU
|
||||||
|
|| key == MENU_RC_EXIT_MENU
|
||||||
|
#endif
|
||||||
|
)
|
||||||
exit_to_main = true;
|
exit_to_main = true;
|
||||||
|
|
||||||
return key;
|
return key;
|
||||||
|
|
|
@ -683,7 +683,11 @@ static bool dirbrowse(void)
|
||||||
case TREE_RC_MENU:
|
case TREE_RC_MENU:
|
||||||
#endif
|
#endif
|
||||||
#ifdef TREE_MENU_PRE
|
#ifdef TREE_MENU_PRE
|
||||||
if (lastbutton != TREE_MENU_PRE)
|
if (lastbutton != TREE_MENU_PRE
|
||||||
|
#ifdef TREE_RC_MENU_PRE
|
||||||
|
&& lastbutton != TREE_RC_MENU_PRE
|
||||||
|
#endif
|
||||||
|
)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
/* don't enter menu from plugin browser */
|
/* don't enter menu from plugin browser */
|
||||||
|
|
|
@ -53,7 +53,8 @@
|
||||||
#define TREE_RC_EXIT BUTTON_RC_STOP
|
#define TREE_RC_EXIT BUTTON_RC_STOP
|
||||||
#define TREE_RC_RUN (BUTTON_RC_MENU | BUTTON_REL)
|
#define TREE_RC_RUN (BUTTON_RC_MENU | BUTTON_REL)
|
||||||
#define TREE_RC_RUN_PRE BUTTON_RC_MENU
|
#define TREE_RC_RUN_PRE BUTTON_RC_MENU
|
||||||
#define TREE_RC_MENU BUTTON_RC_MODE
|
#define TREE_RC_MENU ( BUTTON_RC_MODE | BUTTON_REL)
|
||||||
|
#define TREE_RC_MENU_PRE BUTTON_RC_MODE
|
||||||
#define TREE_RC_WPS (BUTTON_RC_ON | BUTTON_REL)
|
#define TREE_RC_WPS (BUTTON_RC_ON | BUTTON_REL)
|
||||||
#define TREE_RC_WPS_PRE BUTTON_RC_ON
|
#define TREE_RC_WPS_PRE BUTTON_RC_ON
|
||||||
#define TREE_RC_CONTEXT (BUTTON_RC_ON | BUTTON_REPEAT)
|
#define TREE_RC_CONTEXT (BUTTON_RC_ON | BUTTON_REPEAT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue