summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/button.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 8ad93ae022..9dfebf6e38 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -438,6 +438,9 @@ static int button_flip(int button)
438#if CONFIG_KEYPAD == RECORDER_PAD 438#if CONFIG_KEYPAD == RECORDER_PAD
439 | BUTTON_F1 | BUTTON_F3 439 | BUTTON_F1 | BUTTON_F3
440#endif 440#endif
441#if CONFIG_KEYPAD == SANSA_C200_PAD
442 | BUTTON_VOL_UP | BUTTON_VOL_DOWN
443#endif
441 ); 444 );
442 445
443 if (button & BUTTON_LEFT) 446 if (button & BUTTON_LEFT)
@@ -462,6 +465,12 @@ static int button_flip(int button)
462 if (button & BUTTON_F3) 465 if (button & BUTTON_F3)
463 newbutton |= BUTTON_F1; 466 newbutton |= BUTTON_F1;
464#endif 467#endif
468#if CONFIG_KEYPAD == SANSA_C200_PAD
469 if (button & BUTTON_VOL_UP)
470 newbutton |= BUTTON_VOL_DOWN;
471 if (button & BUTTON_VOL_DOWN)
472 newbutton |= BUTTON_VOL_UP;
473#endif
465 474
466 return newbutton; 475 return newbutton;
467} 476}