From 23ab966f6401fa7558200a70f411ac704b22555f Mon Sep 17 00:00:00 2001 From: Marianne Arnold Date: Wed, 3 Sep 2008 22:30:30 +0000 Subject: C200: Also flip the function of the volume buttons when display flip is enabled. I think it is more consistent, especially when thinking of cases where these buttons are used for something else (e.g. left/right in brickmania). Taken from FS#8393 by Volker Mische - add him to CREDITS too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18404 a1c6a512-1295-4272-9138-f99709370657 --- docs/CREDITS | 1 + firmware/drivers/button.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/docs/CREDITS b/docs/CREDITS index dff8826faf..391edecd26 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -415,6 +415,7 @@ Jelle Geerts Tadeusz Pyś Rostislav Chekan Florin Popescu +Volker Mische The libmad team The wavpack team 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 @@ -437,6 +437,9 @@ static int button_flip(int button) #endif #if CONFIG_KEYPAD == RECORDER_PAD | BUTTON_F1 | BUTTON_F3 +#endif +#if CONFIG_KEYPAD == SANSA_C200_PAD + | BUTTON_VOL_UP | BUTTON_VOL_DOWN #endif ); @@ -462,6 +465,12 @@ static int button_flip(int button) if (button & BUTTON_F3) newbutton |= BUTTON_F1; #endif +#if CONFIG_KEYPAD == SANSA_C200_PAD + if (button & BUTTON_VOL_UP) + newbutton |= BUTTON_VOL_DOWN; + if (button & BUTTON_VOL_DOWN) + newbutton |= BUTTON_VOL_UP; +#endif return newbutton; } -- cgit v1.2.3