--- Wizznic_src_build_380.old/src/input.c +++ Wizznic_src_build_380/src/input.c @@ -46,7 +46,13 @@ int getButton(int btn) { - return(button[btn].state); + if (btn == C_BTNB) + { + return (button [btn].state || + button [C_RETURN].state); + } + + return (button[btn].state); } void setButton(int btn) @@ -58,13 +64,20 @@ void resetBtnTimer(int btn) { - button[btn].time=0; + button[btn].time=0; + if (btn == C_BTNB) button[C_RETURN].time=0; } void resetBtn(int btn) { - button[btn].time=0; - button[btn].state=0; + button[btn].time=0; + button[btn].state=0; + + if (btn == C_BTNB) + { + button[C_RETURN].time=0; + button[C_RETURN].state=0; + } } void resetBtnAll() @@ -417,6 +430,5 @@ button[C_BTNSELECT].button = PLATFORM_BUTTON_SELECT; button[C_BTNVOLUP].button = PLATFORM_BUTTON_VOLUP; button[C_BTNVOLDOWN].button = PLATFORM_BUTTON_VOLDOWN; + button[C_RETURN].button = SDLK_RETURN; } - - --- Wizznic_src_build_380.old/src/input.h +++ Wizznic_src_build_380/src/input.h @@ -36,7 +36,8 @@ #define C_BTNSELECT 11 #define C_BTNVOLUP 12 #define C_BTNVOLDOWN 13 -#define C_NUM 14 +#define C_RETURN 14 +#define C_NUM 15 #ifndef PLATFORM_JOY_DEADZONE #define PLATFORM_JOY_DEADZONE 500