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.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c
index 03250f888f..7763fb9737 100644
--- a/apps/plugins/logo.c
+++ b/apps/plugins/logo.c
@@ -189,6 +189,16 @@ const unsigned char rockbox16x7[] = {
189#define LP_INC_Y BUTTON_UP 189#define LP_INC_Y BUTTON_UP
190#endif 190#endif
191 191
192#ifdef CONFIG_REMOTE_KEYPAD
193#if CONFIG_REMOTE_KEYPAD == H100_REMOTE
194#define LP_R_QUIT BUTTON_RC_STOP
195#define LP_R_DEC_X BUTTON_RC_REW
196#define LP_R_INC_X BUTTON_RC_FF
197#define LP_R_DEC_Y BUTTON_RC_SOURCE
198#define LP_R_INC_Y BUTTON_RC_BITRATE
199#endif
200#endif /* CONFIG_REMOTE_KEYPAD */
201
192 202
193enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { 203enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
194 int button; 204 int button;
@@ -273,22 +283,37 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
273 button = rb->button_get(false); 283 button = rb->button_get(false);
274 switch (button) { 284 switch (button) {
275 case LP_QUIT: 285 case LP_QUIT:
286#ifdef CONFIG_REMOTE_KEYPAD
287 case LP_R_QUIT:
288#endif
276#ifdef HAVE_LCD_CHARCELLS 289#ifdef HAVE_LCD_CHARCELLS
277 pgfx_release(); 290 pgfx_release();
278#endif 291#endif
279 return PLUGIN_OK; 292 return PLUGIN_OK;
280 case LP_DEC_X: 293 case LP_DEC_X:
294#ifdef CONFIG_REMOTE_KEYPAD
295 case LP_R_DEC_X:
296#endif
281 if (dx) 297 if (dx)
282 dx += (dx < 0) ? 1 : -1; 298 dx += (dx < 0) ? 1 : -1;
283 break; 299 break;
284 case LP_INC_X: 300 case LP_INC_X:
301#ifdef CONFIG_REMOTE_KEYPAD
302 case LP_R_INC_X:
303#endif
285 dx += (dx < 0) ? -1 : 1; 304 dx += (dx < 0) ? -1 : 1;
286 break; 305 break;
287 case LP_DEC_Y: 306 case LP_DEC_Y:
307#ifdef CONFIG_REMOTE_KEYPAD
308 case LP_R_DEC_Y:
309#endif
288 if (dy) 310 if (dy)
289 dy += (dy < 0) ? 1 : -1; 311 dy += (dy < 0) ? 1 : -1;
290 break; 312 break;
291 case LP_INC_Y: 313 case LP_INC_Y:
314#ifdef CONFIG_REMOTE_KEYPAD
315 case LP_R_INC_Y:
316#endif
292 dy += (dy < 0) ? -1 : 1; 317 dy += (dy < 0) ? -1 : 1;
293 break; 318 break;
294 319