/*
- * (C) notaz, 2010-2011
+ * (C) notaz, 2010-2012
*
* This work is licensed under the terms of the GNU GPLv2 or later.
* See the COPYING file in the top-level directory.
toggle_fast_forward(0);
plugin_call_rearmed_cbs();
break;
+ case SACTION_TOGGLE_FPS:
+ if ((g_opts & (OPT_SHOWFPS|OPT_SHOWCPU))
+ == (OPT_SHOWFPS|OPT_SHOWCPU))
+ g_opts &= ~(OPT_SHOWFPS|OPT_SHOWCPU);
+ else if (g_opts & OPT_SHOWFPS)
+ g_opts |= OPT_SHOWCPU;
+ else
+ g_opts |= OPT_SHOWFPS;
+ break;
case SACTION_SCREENSHOT:
{
char buf[MAXPATHLEN];
char fname[MAXPATHLEN];
int ret;
+ hud_msg[0] = 0;
+
ret = get_state_filename(fname, sizeof(fname), slot);
if (ret != 0)
return ret;
SACTION_VOLUME_UP,
SACTION_VOLUME_DOWN,
SACTION_MINIMIZE,
+ SACTION_TOGGLE_FPS,
SACTION_GUN_TRIGGER = 16,
SACTION_GUN_A,
SACTION_GUN_B,
{ "Next Save Slot ", 1 << SACTION_NEXT_SSLOT },
{ "Toggle Frameskip ", 1 << SACTION_TOGGLE_FSKIP },
{ "Take Screenshot ", 1 << SACTION_SCREENSHOT },
- { "Fast Forward ", 1 << SACTION_FAST_FORWARD },
+ { "Show/Hide FPS ", 1 << SACTION_TOGGLE_FPS },
#ifdef __ARM_ARCH_7A__
{ "Switch Renderer ", 1 << SACTION_SWITCH_DISPMODE },
#endif
+ { "Fast Forward ", 1 << SACTION_FAST_FORWARD },
#if MENU_SHOW_MINIMIZE
{ "Minimize ", 1 << SACTION_MINIMIZE },
#endif
{ KEY_4, IN_BINDTYPE_EMU, SACTION_NEXT_SSLOT },
{ KEY_5, IN_BINDTYPE_EMU, SACTION_TOGGLE_FSKIP },
{ KEY_6, IN_BINDTYPE_EMU, SACTION_SCREENSHOT },
- { KEY_7, IN_BINDTYPE_EMU, SACTION_FAST_FORWARD },
+ { KEY_7, IN_BINDTYPE_EMU, SACTION_TOGGLE_FPS },
{ KEY_8, IN_BINDTYPE_EMU, SACTION_SWITCH_DISPMODE },
+ { KEY_BACKSPACE,IN_BINDTYPE_EMU, SACTION_FAST_FORWARD },
{ 0, 0, 0 }
};
{ SDLK_F4, IN_BINDTYPE_EMU, SACTION_NEXT_SSLOT },
{ SDLK_F5, IN_BINDTYPE_EMU, SACTION_TOGGLE_FSKIP },
{ SDLK_F6, IN_BINDTYPE_EMU, SACTION_SCREENSHOT },
- { SDLK_F7, IN_BINDTYPE_EMU, SACTION_FAST_FORWARD },
+ { SDLK_F7, IN_BINDTYPE_EMU, SACTION_TOGGLE_FPS },
{ SDLK_F8, IN_BINDTYPE_EMU, SACTION_SWITCH_DISPMODE },
+ { SDLK_BACKSPACE, IN_BINDTYPE_EMU, SACTION_FAST_FORWARD },
{ 0, 0, 0 }
};