summaryrefslogtreecommitdiffstats
path: root/apps/plugins/star.c
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2018-03-02 21:53:55 +0100
committerMarcin Bukat <marcin.bukat@gmail.com>2018-06-12 10:31:15 +0200
commitfbb6a2ff6d751adaaef73a86a98700f91571d0a1 (patch)
treee4bf533e945a03887620361ad110b3612321d67d /apps/plugins/star.c
parent0538ba3d59a1a29adcee0b4656b204fda102ad89 (diff)
downloadrockbox-fbb6a2ff6d751adaaef73a86a98700f91571d0a1.tar.gz
rockbox-fbb6a2ff6d751adaaef73a86a98700f91571d0a1.tar.bz2
rockbox-fbb6a2ff6d751adaaef73a86a98700f91571d0a1.zip
Agptek Rocker: Build plugins
Patch provided by Aapo Tahkola. Change-Id: I37a42a950d78d6b8aa3927ec7aeb30030f7be7a5
Diffstat (limited to 'apps/plugins/star.c')
-rw-r--r--apps/plugins/star.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c
index 3560c077f5..6d0cd65e20 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -607,6 +607,22 @@
#define STAR_TOGGLE_CONTROL BUTTON_MENU
#define STAR_TOGGLE_CONTROL_NAME "MENU"
+#elif CONFIG_KEYPAD == AGPTEK_ROCKER_PAD
+#define STAR_QUIT BUTTON_POWER
+#define STAR_LEFT BUTTON_LEFT
+#define STAR_RIGHT BUTTON_RIGHT
+#define STAR_UP BUTTON_UP
+#define STAR_DOWN BUTTON_DOWN
+#define STAR_TOGGLE_CONTROL BUTTON_SELECT
+#define STAR_LEVEL_UP (BUTTON_VOLUP|BUTTON_UP)
+#define STAR_LEVEL_DOWN (BUTTON_VOLUP|BUTTON_DOWN)
+#define STAR_LEVEL_REPEAT (BUTTON_VOLUP|BUTTON_SELECT)
+#define STAR_LEVEL_UP_NAME "Option+Up"
+#define STAR_LEVEL_DOWN_NAME "Option+Down"
+#define STAR_LEVEL_REPEAT_NAME "Option+Play"
+#define STAR_TOGGLE_CONTROL_NAME "Play"
+#define STAR_QUIT_NAME "Back"
+
#else
#error No keymap defined!
#endif