summaryrefslogtreecommitdiff
path: root/apps/plugins/rockblox1d.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockblox1d.c')
-rw-r--r--apps/plugins/rockblox1d.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/rockblox1d.c b/apps/plugins/rockblox1d.c
index 6a2b013c44..6d535bbcd7 100644
--- a/apps/plugins/rockblox1d.c
+++ b/apps/plugins/rockblox1d.c
@@ -28,7 +28,14 @@ static const struct button_mapping *plugin_contexts[] = { pla_main_ctx };
28#define ONEDROCKBLOX_DOWN PLA_DOWN 28#define ONEDROCKBLOX_DOWN PLA_DOWN
29#define ONEDROCKBLOX_DOWN_REPEAT PLA_DOWN_REPEAT 29#define ONEDROCKBLOX_DOWN_REPEAT PLA_DOWN_REPEAT
30#define ONEDROCKBLOX_QUIT PLA_EXIT 30#define ONEDROCKBLOX_QUIT PLA_EXIT
31
32#if (CONFIG_KEYPAD == IPOD_1G2G_PAD) \
33 || (CONFIG_KEYPAD == IPOD_3G_PAD) \
34 || (CONFIG_KEYPAD == IPOD_4G_PAD)
35#define ONEDROCKBLOX_QUIT2 PLA_UP
36#else
31#define ONEDROCKBLOX_QUIT2 PLA_CANCEL 37#define ONEDROCKBLOX_QUIT2 PLA_CANCEL
38#endif
32 39
33#define mrand(max) (short)(rb->rand()%max) 40#define mrand(max) (short)(rb->rand()%max)
34 41