From fb369b063b5e7b633a41ff267ebdbc1176ca5d1d Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Sun, 12 Jun 2005 20:18:37 +0000 Subject: Make remote-control code more complete git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6696 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index da0e54c815..cba8b56a6d 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -468,8 +468,13 @@ static bool ask_resume(bool ask_once) #else case TREE_RUN: #endif + +#ifdef TREE_RC_RUN_PRE + case TREE_RC_RUN_PRE: /* catch the press, not the release */ +#else #ifdef TREE_RC_RUN case TREE_RC_RUN: +#endif #endif ignore_power = false; /* Don't ignore the power button for subsequent calls */ @@ -722,6 +727,9 @@ static bool dirbrowse(void) button = button_get(true); switch (button) { case TREE_RUN: +#ifdef TREE_RC_RUN + case TREE_RC_RUN: +#endif rolo_load("/" BOOTFILE); stop = true; break; @@ -746,11 +754,18 @@ static bool dirbrowse(void) #endif #ifdef TREE_RC_ENTER case TREE_RC_ENTER: +#endif +#ifdef TREE_RC_RUN + case TREE_RC_RUN: #endif case TREE_RUN: #ifdef TREE_RUN_PRE - if ((button == TREE_RUN) && - (lastbutton != TREE_RUN_PRE)) + if (((button == TREE_RUN) +#ifdef TREE_RC_RUN_PRE + || (button == TREE_RC_RUN)) + && ((lastbutton != TREE_RC_RUN_PRE) +#endif + && (lastbutton != TREE_RUN_PRE))) break; #endif if ( !numentries ) @@ -1014,8 +1029,15 @@ static bool dirbrowse(void) break; case TREE_WPS: +#ifdef TREE_RC_WPS + case TREE_RC_WPS: +#endif #ifdef TREE_WPS_PRE - if (lastbutton != TREE_WPS_PRE) + if ((lastbutton != TREE_WPS_PRE) +#ifdef TREE_RC_WPS + && (lastbutton != TREE_RC_WPS_PRE) +#endif + ) break; #endif /* don't enter wps from plugin browser etc */ @@ -1059,6 +1081,9 @@ static bool dirbrowse(void) #endif case TREE_CONTEXT: +#ifdef TREE_RC_CONTEXT + case TREE_RC_CONTEXT: +#endif #ifdef TREE_CONTEXT2 case TREE_CONTEXT2: #endif -- cgit v1.2.3