diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2012-04-15 15:53:46 +0200 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2012-04-15 23:27:50 +0200 |
commit | e92fbb42d7d25311cc03a69390ba758033d5134a (patch) | |
tree | 6869ff16071c31c5a5e0679b095edd8e8f2aade6 | |
parent | 05ebf79540158e19311d1f2b50dd57dacd3c2e09 (diff) | |
download | rockbox-e92fbb42d7d25311cc03a69390ba758033d5134a.tar.gz rockbox-e92fbb42d7d25311cc03a69390ba758033d5134a.zip |
FS#10345 - Gigabeat: Switch volume buttons in Upside Down mode
Change-Id: If2d5ed52e5b52c48b50e412dda52632bb08b0c8d
-rw-r--r-- | firmware/drivers/button.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 3ee5e7c2f4..c165e8f566 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -485,7 +485,8 @@ static int button_flip(int button) | |||
485 | #if CONFIG_KEYPAD == RECORDER_PAD | 485 | #if CONFIG_KEYPAD == RECORDER_PAD |
486 | | BUTTON_F1 | BUTTON_F3 | 486 | | BUTTON_F1 | BUTTON_F3 |
487 | #endif | 487 | #endif |
488 | #if (CONFIG_KEYPAD == SANSA_C200_PAD) || (CONFIG_KEYPAD == SANSA_CLIP_PAD) | 488 | #if (CONFIG_KEYPAD == SANSA_C200_PAD) || (CONFIG_KEYPAD == SANSA_CLIP_PAD) ||\ |
489 | (CONFIG_KEYPAD == GIGABEAT_PAD) || (CONFIG_KEYPAD == GIGABEAT_S_PAD) | ||
489 | | BUTTON_VOL_UP | BUTTON_VOL_DOWN | 490 | | BUTTON_VOL_UP | BUTTON_VOL_DOWN |
490 | #endif | 491 | #endif |
491 | #if CONFIG_KEYPAD == PHILIPS_SA9200_PAD | 492 | #if CONFIG_KEYPAD == PHILIPS_SA9200_PAD |
@@ -516,7 +517,8 @@ static int button_flip(int button) | |||
516 | if (button & BUTTON_F3) | 517 | if (button & BUTTON_F3) |
517 | newbutton |= BUTTON_F1; | 518 | newbutton |= BUTTON_F1; |
518 | #endif | 519 | #endif |
519 | #if (CONFIG_KEYPAD == SANSA_C200_PAD) || (CONFIG_KEYPAD == SANSA_CLIP_PAD) | 520 | #if (CONFIG_KEYPAD == SANSA_C200_PAD) || (CONFIG_KEYPAD == SANSA_CLIP_PAD) ||\ |
521 | (CONFIG_KEYPAD == GIGABEAT_PAD) || (CONFIG_KEYPAD == GIGABEAT_S_PAD) | ||
520 | if (button & BUTTON_VOL_UP) | 522 | if (button & BUTTON_VOL_UP) |
521 | newbutton |= BUTTON_VOL_DOWN; | 523 | newbutton |= BUTTON_VOL_DOWN; |
522 | if (button & BUTTON_VOL_DOWN) | 524 | if (button & BUTTON_VOL_DOWN) |