summaryrefslogtreecommitdiff
path: root/apps/plugins/flipit.c
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2011-11-16 14:08:01 +0000
committerTomasz Moń <desowin@gmail.com>2011-11-16 14:08:01 +0000
commite8a8a1be43afe63079ae48ce1a9eb3052df3b1a4 (patch)
tree084e1cdf27a339ce58e24cff8fec8c31432b52db /apps/plugins/flipit.c
parent992d4eb775cac48e107e18d72783ebfb39c4234f (diff)
downloadrockbox-e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4.tar.gz
rockbox-e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4.zip
Sandisk Sansa Connect port (FS #12363)
Included are drivers for buttons, backlight, lcd, audio and storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/flipit.c')
-rw-r--r--apps/plugins/flipit.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c
index 70d35ec100..ffc691c720 100644
--- a/apps/plugins/flipit.c
+++ b/apps/plugins/flipit.c
@@ -368,6 +368,18 @@
368#define FLIPIT_STEP_BY_STEP (BUTTON_BACK|BUTTON_PLAYPAUSE) 368#define FLIPIT_STEP_BY_STEP (BUTTON_BACK|BUTTON_PLAYPAUSE)
369#define FLIPIT_TOGGLE BUTTON_SELECT 369#define FLIPIT_TOGGLE BUTTON_SELECT
370 370
371#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD
372
373#define FLIPIT_LEFT BUTTON_LEFT
374#define FLIPIT_RIGHT BUTTON_RIGHT
375#define FLIPIT_UP BUTTON_UP
376#define FLIPIT_DOWN BUTTON_DOWN
377#define FLIPIT_QUIT BUTTON_POWER
378#define FLIPIT_SHUFFLE BUTTON_VOL_UP
379#define FLIPIT_SOLVE BUTTON_PREV
380#define FLIPIT_STEP_BY_STEP BUTTON_NEXT
381#define FLIPIT_TOGGLE BUTTON_SELECT
382
371#else 383#else
372#error No keymap defined! 384#error No keymap defined!
373#endif 385#endif
@@ -838,6 +850,12 @@ enum plugin_status plugin_start(const void* parameter)
838 rb->lcd_putsxy(2, 28, "[MODE] shuffle"); 850 rb->lcd_putsxy(2, 28, "[MODE] shuffle");
839 rb->lcd_putsxy(2, 38, "[MENU..] solution"); 851 rb->lcd_putsxy(2, 38, "[MENU..] solution");
840 rb->lcd_putsxy(2, 48, "[MENU] step by step"); 852 rb->lcd_putsxy(2, 48, "[MENU] step by step");
853#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD
854 rb->lcd_putsxy(2, 8, "[POWER] to stop");
855 rb->lcd_putsxy(2, 18, "[SELECT] toggle");
856 rb->lcd_putsxy(2, 28, "[VOL+] shuffle");
857 rb->lcd_putsxy(2, 38, "[PREV] solution");
858 rb->lcd_putsxy(2, 48, "[NEXT] step by step");
841#endif 859#endif
842 860
843#ifdef HAVE_TOUCHSCREEN 861#ifdef HAVE_TOUCHSCREEN