summaryrefslogtreecommitdiff
path: root/apps/plugins/flipit.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-06-28 06:24:26 -0400
committerMichael Giacomelli <giac2000@hotmail.com>2018-07-28 10:56:31 -0400
commit0662793ca0050e823cd1207cc4689a1cba5068bd (patch)
tree08cd2ec59c9044c96b697b5bf8d0640841d044e0 /apps/plugins/flipit.c
parentb3e2bd619b1b7ea94ef29d32db48e80b347a1990 (diff)
downloadrockbox-0662793ca0050e823cd1207cc4689a1cba5068bd.tar.gz
rockbox-0662793ca0050e823cd1207cc4689a1cba5068bd.zip
Add cleaned-up xDuoo X3 support
Cleaned up, rebased, and forward-ported from the xvortex fork. (original credit to vsoftster@gmail.com) Change-Id: Ibcc023a0271ea81e901450a88317708c2683236d Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Diffstat (limited to 'apps/plugins/flipit.c')
-rw-r--r--apps/plugins/flipit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c
index fafc1f9c08..b089974aef 100644
--- a/apps/plugins/flipit.c
+++ b/apps/plugins/flipit.c
@@ -482,6 +482,18 @@
482#define FLIPIT_STEP_BY_STEP (BUTTON_LEFT|BUTTON_VOLUP) 482#define FLIPIT_STEP_BY_STEP (BUTTON_LEFT|BUTTON_VOLUP)
483#define FLIPIT_TOGGLE BUTTON_SELECT 483#define FLIPIT_TOGGLE BUTTON_SELECT
484 484
485#elif CONFIG_KEYPAD == XDUOO_X3_PAD
486
487#define FLIPIT_LEFT BUTTON_PREV
488#define FLIPIT_RIGHT BUTTON_NEXT
489#define FLIPIT_UP BUTTON_HOME
490#define FLIPIT_DOWN BUTTON_OPTION
491#define FLIPIT_QUIT BUTTON_POWER
492#define FLIPIT_SHUFFLE (BUTTON_HOME | BUTTON_PREV)
493#define FLIPIT_SOLVE (BUTTON_HOME | BUTTON_NEXT)
494#define FLIPIT_STEP_BY_STEP (BUTTON_HOME | BUTTON_PLAY)
495#define FLIPIT_TOGGLE BUTTON_PLAY
496
485#else 497#else
486#error No keymap defined! 498#error No keymap defined!
487#endif 499#endif