diff options
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 6fbe5de229..6f6eb8f222 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -445,6 +445,10 @@ static int button_flip(int button) | |||
445 | #if CONFIG_KEYPAD == SANSA_C200_PAD | 445 | #if CONFIG_KEYPAD == SANSA_C200_PAD |
446 | | BUTTON_VOL_UP | BUTTON_VOL_DOWN | 446 | | BUTTON_VOL_UP | BUTTON_VOL_DOWN |
447 | #endif | 447 | #endif |
448 | #if CONFIG_KEYPAD == PHILIPS_SA9200_PAD | ||
449 | | BUTTON_VOL_UP | BUTTON_VOL_DOWN | ||
450 | | BUTTON_NEXT | BUTTON_PREV | ||
451 | #endif | ||
448 | ); | 452 | ); |
449 | 453 | ||
450 | if (button & BUTTON_LEFT) | 454 | if (button & BUTTON_LEFT) |
@@ -475,6 +479,16 @@ static int button_flip(int button) | |||
475 | if (button & BUTTON_VOL_DOWN) | 479 | if (button & BUTTON_VOL_DOWN) |
476 | newbutton |= BUTTON_VOL_UP; | 480 | newbutton |= BUTTON_VOL_UP; |
477 | #endif | 481 | #endif |
482 | #if CONFIG_KEYPAD == PHILIPS_SA9200_PAD | ||
483 | if (button & BUTTON_VOL_UP) | ||
484 | newbutton |= BUTTON_VOL_DOWN; | ||
485 | if (button & BUTTON_VOL_DOWN) | ||
486 | newbutton |= BUTTON_VOL_UP; | ||
487 | if (button & BUTTON_NEXT) | ||
488 | newbutton |= BUTTON_PREV; | ||
489 | if (button & BUTTON_PREV) | ||
490 | newbutton |= BUTTON_NEXT; | ||
491 | #endif | ||
478 | 492 | ||
479 | return newbutton; | 493 | return newbutton; |
480 | } | 494 | } |