acts = parse_bind_val(val, &type);
if (acts == -1) {
lprintf("config: unhandled action \"%s\"\n", val);
- return;
+ continue;
}
mystrip(var + 5);
emu_status_msg("SAVE SLOT %i [%s]", state_slot,\r
emu_check_save_file(state_slot, NULL) ? "USED" : "FREE");\r
}\r
+ if (which & PEV_RESET)\r
+ emu_reset_game();\r
if (which & PEV_MENU)\r
engineState = PGS_Menu;\r
}\r
#define PEVB_PICO_PNEXT 21
#define PEVB_PICO_PPREV 20
#define PEVB_PICO_SWINP 19
+#define PEVB_RESET 18
#define PEV_VOL_DOWN (1 << PEVB_VOL_DOWN)
#define PEV_VOL_UP (1 << PEVB_VOL_UP)
#define PEV_PICO_PNEXT (1 << PEVB_PICO_PNEXT)
#define PEV_PICO_PPREV (1 << PEVB_PICO_PPREV)
#define PEV_PICO_SWINP (1 << PEVB_PICO_SWINP)
+#define PEV_RESET (1 << PEVB_RESET)
-#define PEV_MASK 0x7ff80000
+#define PEV_MASK 0x7ffc0000
#endif /* INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c */
{ "Volume Down ", PEV_VOL_DOWN },
{ "Volume Up ", PEV_VOL_UP },
{ "Fast forward ", PEV_FF },
+ { "Reset Game ", PEV_RESET },
{ "Enter Menu ", PEV_MENU },
{ "Pico Next page ", PEV_PICO_PNEXT },
{ "Pico Prev page ", PEV_PICO_PPREV },
{ SDLK_RETURN, IN_BINDTYPE_PLAYER12, GBTN_START },
{ SDLK_f, IN_BINDTYPE_PLAYER12, GBTN_MODE },
{ SDLK_ESCAPE, IN_BINDTYPE_EMU, PEVB_MENU },
+ { SDLK_TAB, IN_BINDTYPE_EMU, PEVB_RESET },
{ SDLK_F1, IN_BINDTYPE_EMU, PEVB_STATE_SAVE },
{ SDLK_F2, IN_BINDTYPE_EMU, PEVB_STATE_LOAD },
{ SDLK_F3, IN_BINDTYPE_EMU, PEVB_SSLOT_PREV },
{ KEY_S, IN_BINDTYPE_PLAYER12, GBTN_B },\r
{ KEY_D, IN_BINDTYPE_PLAYER12, GBTN_C },\r
{ KEY_ENTER, IN_BINDTYPE_PLAYER12, GBTN_START },\r
+ { KEY_R, IN_BINDTYPE_EMU, PEVB_RESET },\r
{ KEY_F, IN_BINDTYPE_EMU, PEVB_FF },\r
{ KEY_BACKSPACE,IN_BINDTYPE_EMU, PEVB_FF },\r
{ KEY_BACKSLASH,IN_BINDTYPE_EMU, PEVB_MENU },\r