diff options
Diffstat (limited to 'apps/plugins/wormlet.c')
-rw-r--r-- | apps/plugins/wormlet.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c index a8447c9952..b18cdc21f8 100644 --- a/apps/plugins/wormlet.c +++ b/apps/plugins/wormlet.c | |||
@@ -46,36 +46,8 @@ static long max_cycle; | |||
46 | when a new argh is made */ | 46 | when a new argh is made */ |
47 | #define MIN_ARGH_DIST 5 | 47 | #define MIN_ARGH_DIST 5 |
48 | 48 | ||
49 | #if (CONFIG_KEYPAD == RECORDER_PAD) | 49 | #if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \ |
50 | #define BTN_DIR_UP BUTTON_UP | 50 | (CONFIG_KEYPAD == IPOD_1G2G_PAD) |
51 | #define BTN_DIR_DOWN BUTTON_DOWN | ||
52 | #define BTN_DIR_LEFT BUTTON_LEFT | ||
53 | #define BTN_DIR_RIGHT BUTTON_RIGHT | ||
54 | #define BTN_PLAYER2_DIR1 BUTTON_F2 | ||
55 | #define BTN_PLAYER2_DIR2 BUTTON_F3 | ||
56 | #define BTN_STARTPAUSE BUTTON_PLAY | ||
57 | #define BTN_QUIT BUTTON_OFF | ||
58 | #define BTN_STOPRESET BUTTON_ON | ||
59 | #define BTN_TOGGLE_KEYS BUTTON_F1 | ||
60 | |||
61 | #if BUTTON_REMOTE != 0 | ||
62 | #define BTN_RC_UP BUTTON_RC_VOL_UP | ||
63 | #define BTN_RC_DOWN BUTTON_RC_VOL_DOWN | ||
64 | #define REMOTE | ||
65 | #define MULTIPLAYER | ||
66 | #endif | ||
67 | |||
68 | #elif (CONFIG_KEYPAD == ONDIO_PAD) | ||
69 | #define BTN_DIR_UP BUTTON_UP | ||
70 | #define BTN_DIR_DOWN BUTTON_DOWN | ||
71 | #define BTN_DIR_LEFT BUTTON_LEFT | ||
72 | #define BTN_DIR_RIGHT BUTTON_RIGHT | ||
73 | #define BTN_STARTPAUSE (BUTTON_MENU|BUTTON_REL) | ||
74 | #define BTN_QUIT (BUTTON_OFF|BUTTON_REL) | ||
75 | #define BTN_STOPRESET (BUTTON_OFF|BUTTON_MENU) | ||
76 | |||
77 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \ | ||
78 | (CONFIG_KEYPAD == IPOD_1G2G_PAD) | ||
79 | 51 | ||
80 | #define BTN_DIR_UP BUTTON_MENU | 52 | #define BTN_DIR_UP BUTTON_MENU |
81 | #define BTN_DIR_DOWN BUTTON_PLAY | 53 | #define BTN_DIR_DOWN BUTTON_PLAY |