mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
[Feature] FS#13850 - Add SELECT button support in calculator on FiiO M3K
baremetal port add select as a second way to enter Change-Id: I0e3ab76fee8e6accd4425def3da48fb12a6142e8
This commit is contained in:
parent
121c65b32a
commit
2d419b4b93
1 changed files with 10 additions and 0 deletions
|
|
@ -519,6 +519,7 @@ F3: equal to "="
|
|||
#define CALCULATOR_DOWN BUTTON_DOWN
|
||||
#define CALCULATOR_QUIT BUTTON_POWER
|
||||
#define CALCULATOR_INPUT BUTTON_PLAY
|
||||
#define CALCULATOR_INPUT2 (BUTTON_SELECT|BUTTON_REL)
|
||||
#define CALCULATOR_CALC BUTTON_MENU
|
||||
#define CALCULATOR_CLEAR BUTTON_BACK
|
||||
|
||||
|
|
@ -1938,6 +1939,9 @@ Handle buttons on basic screen
|
|||
----------------------------------------------------------------------- */
|
||||
static void basicButtonsProcess(void){
|
||||
switch (btn) {
|
||||
#ifdef CALCULATOR_INPUT2
|
||||
case CALCULATOR_INPUT2: /*fallthrough*/
|
||||
#endif
|
||||
case CALCULATOR_INPUT:
|
||||
if (calStatus == cal_error && (CAL_BUTTON != btn_C) ) break;
|
||||
flashButton();
|
||||
|
|
@ -2041,6 +2045,9 @@ Handle buttons on scientific screen
|
|||
----------------------------------------------------------------------- */
|
||||
static void sciButtonsProcess(void){
|
||||
switch (btn) {
|
||||
#ifdef CALCULATOR_INPUT2
|
||||
case CALCULATOR_INPUT2: /*fallthrough*/
|
||||
#endif
|
||||
case CALCULATOR_INPUT:
|
||||
if (calStatus == cal_error && (CAL_BUTTON != sci_sci) ) break;
|
||||
flashButton();
|
||||
|
|
@ -2133,6 +2140,9 @@ static int handleButton(int button){
|
|||
break;
|
||||
/* no unconditional break; here! */
|
||||
#endif
|
||||
#ifdef CALCULATOR_INPUT2 /* bypass pre button */
|
||||
case CALCULATOR_INPUT2: /*fallthrough*/
|
||||
#endif
|
||||
#ifdef CALCULATOR_OPERATORS
|
||||
case CALCULATOR_OPERATORS:
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue