summaryrefslogtreecommitdiff
path: root/apps/plugins/logo.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/logo.c')
-rw-r--r--apps/plugins/logo.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c
index 7a1a746d4a..f08ca3a62a 100644
--- a/apps/plugins/logo.c
+++ b/apps/plugins/logo.c
@@ -138,10 +138,6 @@ const unsigned char rockbox16x7[] = {
138 138
139#elif CONFIG_KEYPAD == COWOND2_PAD 139#elif CONFIG_KEYPAD == COWOND2_PAD
140#define LP_QUIT BUTTON_POWER 140#define LP_QUIT BUTTON_POWER
141#define LP_DEC_X BUTTON_LEFT
142#define LP_INC_X BUTTON_RIGHT
143#define LP_DEC_Y BUTTON_DOWN
144#define LP_INC_Y BUTTON_UP
145 141
146#else 142#else
147#define LP_QUIT BUTTON_OFF 143#define LP_QUIT BUTTON_OFF
@@ -162,6 +158,23 @@ const unsigned char rockbox16x7[] = {
162#endif 158#endif
163#endif /* CONFIG_REMOTE_KEYPAD */ 159#endif /* CONFIG_REMOTE_KEYPAD */
164 160
161#ifdef HAVE_TOUCHPAD
162#ifndef LP_QUIT
163#define LP_QUIT BUTTON_TOPLEFT
164#endif
165#ifndef LP_DEC_X
166#define LP_DEC_X BUTTON_MIDLEFT
167#endif
168#ifndef LP_INC_X
169#define LP_INC_X BUTTON_MIDRIGHT
170#endif
171#ifndef LP_DEC_Y
172#define LP_DEC_Y BUTTON_TOPMIDDLE
173#endif
174#ifndef LP_INC_Y
175#define LP_INC_Y BUTTON_BOTTOMMIDDLE
176#endif
177#endif
165 178
166enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { 179enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
167 int button; 180 int button;
@@ -289,3 +302,4 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
289 } 302 }
290} 303}
291 304
305