diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-01-23 01:01:14 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-01-23 01:01:14 +0000 |
commit | 259e35488936cc6e75f906413ccd574e336fd38a (patch) | |
tree | 51ee679e5102b9a683d44b757ad4b2329d8d7030 /apps/tree.h | |
parent | c188e83eddb72d90826590f956342589131d3211 (diff) |
Added button definitions for gmini build. Prettified formatting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5638 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.h')
-rw-r--r-- | apps/tree.h | 132 |
1 files changed, 74 insertions, 58 deletions
diff --git a/apps/tree.h b/apps/tree.h index 87364bfd5a..239d0042f7 100644 --- a/apps/tree.h +++ b/apps/tree.h @@ -24,77 +24,93 @@ #include <file.h> #if CONFIG_KEYPAD == IRIVER_H100_PAD -#define TREE_NEXT BUTTON_DOWN -#define TREE_PREV BUTTON_UP -#define TREE_EXIT BUTTON_LEFT -#define TREE_ENTER BUTTON_RIGHT -#define TREE_RUN (BUTTON_SELECT | BUTTON_REL) -#define TREE_RUN_PRE BUTTON_SELECT -#define TREE_MENU BUTTON_MODE -#define TREE_OFF BUTTON_OFF -#define TREE_WPS (BUTTON_ON | BUTTON_REL) -#define TREE_WPS_PRE BUTTON_ON -#define TREE_PGUP (BUTTON_ON | BUTTON_UP) -#define TREE_PGDN (BUTTON_ON | BUTTON_DOWN) -#define TREE_CONTEXT (BUTTON_SELECT | BUTTON_REPEAT) -#define TREE_CONTEXT2 (BUTTON_ON | BUTTON_SELECT) +#define TREE_NEXT BUTTON_DOWN +#define TREE_PREV BUTTON_UP +#define TREE_EXIT BUTTON_LEFT +#define TREE_ENTER BUTTON_RIGHT +#define TREE_RUN (BUTTON_SELECT | BUTTON_REL) +#define TREE_RUN_PRE BUTTON_SELECT +#define TREE_MENU BUTTON_MODE +#define TREE_OFF BUTTON_OFF +#define TREE_WPS (BUTTON_ON | BUTTON_REL) +#define TREE_WPS_PRE BUTTON_ON +#define TREE_PGUP (BUTTON_ON | BUTTON_UP) +#define TREE_PGDN (BUTTON_ON | BUTTON_DOWN) +#define TREE_CONTEXT (BUTTON_SELECT | BUTTON_REPEAT) +#define TREE_CONTEXT2 (BUTTON_ON | BUTTON_SELECT) #define TREE_POWER_BTN BUTTON_ON #elif CONFIG_KEYPAD == RECORDER_PAD -#define TREE_NEXT BUTTON_DOWN -#define TREE_PREV BUTTON_UP -#define TREE_EXIT BUTTON_LEFT -#define TREE_ENTER BUTTON_RIGHT -#define TREE_RUN (BUTTON_PLAY | BUTTON_REL) -#define TREE_RUN_PRE BUTTON_PLAY -#define TREE_MENU BUTTON_F1 -#define TREE_OFF BUTTON_OFF -#define TREE_WPS (BUTTON_ON | BUTTON_REL) -#define TREE_WPS_PRE BUTTON_ON -#define TREE_PGUP (BUTTON_ON | BUTTON_UP) -#define TREE_PGDN (BUTTON_ON | BUTTON_DOWN) -#define TREE_CONTEXT (BUTTON_PLAY | BUTTON_REPEAT) -#define TREE_CONTEXT2 (BUTTON_ON | BUTTON_PLAY) +#define TREE_NEXT BUTTON_DOWN +#define TREE_PREV BUTTON_UP +#define TREE_EXIT BUTTON_LEFT +#define TREE_ENTER BUTTON_RIGHT +#define TREE_RUN (BUTTON_PLAY | BUTTON_REL) +#define TREE_RUN_PRE BUTTON_PLAY +#define TREE_MENU BUTTON_F1 +#define TREE_OFF BUTTON_OFF +#define TREE_WPS (BUTTON_ON | BUTTON_REL) +#define TREE_WPS_PRE BUTTON_ON +#define TREE_PGUP (BUTTON_ON | BUTTON_UP) +#define TREE_PGDN (BUTTON_ON | BUTTON_DOWN) +#define TREE_CONTEXT (BUTTON_PLAY | BUTTON_REPEAT) +#define TREE_CONTEXT2 (BUTTON_ON | BUTTON_PLAY) #define TREE_POWER_BTN BUTTON_ON -#define TREE_RC_NEXT BUTTON_RC_RIGHT -#define TREE_RC_PREV BUTTON_RC_LEFT -#define TREE_RC_EXIT BUTTON_RC_STOP -#define TREE_RC_ENTER BUTTON_RC_PLAY -#define TREE_RC_RUN BUTTON_RC_PLAY +#define TREE_RC_NEXT BUTTON_RC_RIGHT +#define TREE_RC_PREV BUTTON_RC_LEFT +#define TREE_RC_EXIT BUTTON_RC_STOP +#define TREE_RC_ENTER BUTTON_RC_PLAY +#define TREE_RC_RUN BUTTON_RC_PLAY #elif CONFIG_KEYPAD == PLAYER_PAD -#define TREE_NEXT BUTTON_RIGHT -#define TREE_PREV BUTTON_LEFT -#define TREE_EXIT BUTTON_STOP -#define TREE_RUN (BUTTON_PLAY | BUTTON_REL) -#define TREE_RUN_PRE BUTTON_PLAY -#define TREE_MENU BUTTON_MENU -#define TREE_WPS (BUTTON_ON | BUTTON_REL) -#define TREE_WPS_PRE BUTTON_ON -#define TREE_CONTEXT (BUTTON_PLAY | BUTTON_REPEAT) -#define TREE_CONTEXT2 (BUTTON_ON | BUTTON_PLAY) +#define TREE_NEXT BUTTON_RIGHT +#define TREE_PREV BUTTON_LEFT +#define TREE_EXIT BUTTON_STOP +#define TREE_RUN (BUTTON_PLAY | BUTTON_REL) +#define TREE_RUN_PRE BUTTON_PLAY +#define TREE_MENU BUTTON_MENU +#define TREE_WPS (BUTTON_ON | BUTTON_REL) +#define TREE_WPS_PRE BUTTON_ON +#define TREE_CONTEXT (BUTTON_PLAY | BUTTON_REPEAT) +#define TREE_CONTEXT2 (BUTTON_ON | BUTTON_PLAY) #define TREE_POWER_BTN BUTTON_ON -#define TREE_RC_NEXT BUTTON_RC_RIGHT -#define TREE_RC_PREV BUTTON_RC_LEFT -#define TREE_RC_EXIT BUTTON_RC_STOP -#define TREE_RC_ENTER BUTTON_RC_PLAY -#define TREE_RC_RUN BUTTON_RC_PLAY +#define TREE_RC_NEXT BUTTON_RC_RIGHT +#define TREE_RC_PREV BUTTON_RC_LEFT +#define TREE_RC_EXIT BUTTON_RC_STOP +#define TREE_RC_ENTER BUTTON_RC_PLAY +#define TREE_RC_RUN BUTTON_RC_PLAY #elif CONFIG_KEYPAD == ONDIO_PAD -#define TREE_NEXT BUTTON_DOWN -#define TREE_PREV BUTTON_UP -#define TREE_EXIT BUTTON_LEFT -#define TREE_RUN (BUTTON_RIGHT | BUTTON_REL) -#define TREE_RUN_PRE BUTTON_RIGHT -#define TREE_MENU (BUTTON_MENU | BUTTON_REPEAT) -#define TREE_MENU_PRE BUTTON_MENU -#define TREE_WPS (BUTTON_MENU | BUTTON_REL) -#define TREE_WPS_PRE BUTTON_MENU -#define TREE_CONTEXT (BUTTON_RIGHT | BUTTON_REPEAT) +#define TREE_NEXT BUTTON_DOWN +#define TREE_PREV BUTTON_UP +#define TREE_EXIT BUTTON_LEFT +#define TREE_RUN (BUTTON_RIGHT | BUTTON_REL) +#define TREE_RUN_PRE BUTTON_RIGHT +#define TREE_MENU (BUTTON_MENU | BUTTON_REPEAT) +#define TREE_MENU_PRE BUTTON_MENU +#define TREE_WPS (BUTTON_MENU | BUTTON_REL) +#define TREE_WPS_PRE BUTTON_MENU +#define TREE_CONTEXT (BUTTON_RIGHT | BUTTON_REPEAT) #define TREE_POWER_BTN BUTTON_OFF +#elif CONFIG_KEYPAD == GMINI100_PAD +#define TREE_NEXT BUTTON_DOWN +#define TREE_PREV BUTTON_UP +#define TREE_EXIT BUTTON_LEFT +#define TREE_ENTER BUTTON_RIGHT +#define TREE_RUN (BUTTON_PLAY | BUTTON_REL) +#define TREE_RUN_PRE BUTTON_PLAY +#define TREE_MENU BUTTON_MENU +#define TREE_WPS (BUTTON_ON | BUTTON_REL) +#define TREE_WPS_PRE BUTTON_ON +#define TREE_PGUP (BUTTON_ON | BUTTON_UP) +#define TREE_PGDN (BUTTON_ON | BUTTON_DOWN) +#define TREE_CONTEXT (BUTTON_PLAY | BUTTON_REPEAT) +#define TREE_CONTEXT2 (BUTTON_ON | BUTTON_PLAY) +#define TREE_POWER_BTN BUTTON_ON + #endif #ifdef HAVE_LCD_BITMAP |