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 6536a34037..5add6cb817 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -704,6 +704,9 @@ static int button_flip(int button)
704#if defined(BUTTON_UP) && defined(BUTTON_DOWN) 704#if defined(BUTTON_UP) && defined(BUTTON_DOWN)
705 | BUTTON_UP | BUTTON_DOWN 705 | BUTTON_UP | BUTTON_DOWN
706#endif 706#endif
707#if defined(BUTTON_SCROLL_UP) && defined(BUTTON_SCROLL_DOWN)
708 | BUTTON_SCROLL_UP | BUTTON_SCROLL_DOWN
709#endif
707#if CONFIG_KEYPAD == RECORDER_PAD 710#if CONFIG_KEYPAD == RECORDER_PAD
708 | BUTTON_F1 | BUTTON_F3 711 | BUTTON_F1 | BUTTON_F3
709#endif 712#endif
@@ -719,6 +722,12 @@ static int button_flip(int button)
719 if (button & BUTTON_DOWN) 722 if (button & BUTTON_DOWN)
720 newbutton |= BUTTON_UP; 723 newbutton |= BUTTON_UP;
721#endif 724#endif
725#if defined(BUTTON_SCROLL_UP) && defined(BUTTON_SCROLL_DOWN)
726 if (button & BUTTON_SCROLL_UP)
727 newbutton |= BUTTON_SCROLL_DOWN;
728 if (button & BUTTON_SCROLL_DOWN)
729 newbutton |= BUTTON_SCROLL_UP;
730#endif
722#if CONFIG_KEYPAD == RECORDER_PAD 731#if CONFIG_KEYPAD == RECORDER_PAD
723 if (button & BUTTON_F1) 732 if (button & BUTTON_F1)
724 newbutton |= BUTTON_F3; 733 newbutton |= BUTTON_F3;