[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:
William Wilgus 2026-04-29 11:24:34 -04:00
parent 121c65b32a
commit 2d419b4b93

View file

@ -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