Added Disp BG, OBJ hotkeys
This commit is contained in:
parent
be1ad5f5c3
commit
0a4d291e64
|
@ -41,14 +41,12 @@ static struct
|
|||
{ EMUCMD_SAVE_SLOT_9, SCAN_9, },
|
||||
{ EMUCMD_SAVE_STATE, SCAN_I, }, //adelikat, set to my defaults for lack of something better
|
||||
{ EMUCMD_LOAD_STATE, SCAN_P, }, //most people use the loadslotx / savestlotx style system which requires hogging all th F Keys. So I set it up in FCEUX that way.
|
||||
//get feedback from TAS people about these
|
||||
{ EMUCMD_MOVIE_FRAME_DISPLAY_TOGGLE, SCAN_PERIOD, },
|
||||
//{ EMUCMD_FDS_EJECT_INSERT, SCAN_F8, }, //These two can be removed, as they can cause nasty errors and the F keys are needed
|
||||
//{ EMUCMD_FDS_SIDE_SELECT, SCAN_F6, },
|
||||
{ EMUCMD_MOVIE_INPUT_DISPLAY_TOGGLE, SCAN_COMMA, },
|
||||
//{ EMUCMD_MOVIE_READONLY_TOGGLE, SCAN_8 | CMD_KEY_SHIFT, },*/
|
||||
//{ EMUCMD_MISC_AUTOSAVE, SCAN_R, }, adelikat - Since Auto-save is disabled by default, so should the hotkey mapping
|
||||
//mbg 7/31/06 - these have been removed as defaults until we decide whether hotkey philosophy permits them
|
||||
{ EMUCMD_SAVE_STATE_SLOT_0, SCAN_F10 | CMD_KEY_SHIFT, },
|
||||
{ EMUCMD_SAVE_STATE_SLOT_1, SCAN_F1 | CMD_KEY_SHIFT, },
|
||||
{ EMUCMD_SAVE_STATE_SLOT_2, SCAN_F2 | CMD_KEY_SHIFT, },
|
||||
|
|
|
@ -616,6 +616,8 @@ static void CommandEmulationSpeed(void);
|
|||
//static void CommandMovieReplay(void);
|
||||
static void CommandSoundAdjust(void);
|
||||
static void CommandUsePreset(void);
|
||||
static void BackgroundDisplayToggle(void);
|
||||
static void ObjectDisplayToggle(void);
|
||||
static void ViewSlots(void);
|
||||
|
||||
struct EMUCMDTABLE FCEUI_CommandTable[]=
|
||||
|
@ -743,6 +745,8 @@ struct EMUCMDTABLE FCEUI_CommandTable[]=
|
|||
{ EMUCMD_MISC_USE_INPUT_PRESET_1, EMUCMDTYPE_MISC, CommandUsePreset, 0, 0, "Use Input Preset 1", 0 },
|
||||
{ EMUCMD_MISC_USE_INPUT_PRESET_2, EMUCMDTYPE_MISC, CommandUsePreset, 0, 0, "Use Input Preset 2", 0 },
|
||||
{ EMUCMD_MISC_USE_INPUT_PRESET_3, EMUCMDTYPE_MISC, CommandUsePreset, 0, 0, "Use Input Preset 3", 0 },
|
||||
{ EMUCMD_MISC_DISPLAY_BG_TOGGLE, EMUCMDTYPE_MISC, BackgroundDisplayToggle, 0, 0, "Toggle Background Display", 0 },
|
||||
{ EMUCMD_MISC_DISPLAY_OBJ_TOGGLE, EMUCMDTYPE_MISC, ObjectDisplayToggle, 0, 0, "Toggle Object Display", 0 },
|
||||
};
|
||||
|
||||
#define NUM_EMU_CMDS (sizeof(FCEUI_CommandTable)/sizeof(FCEUI_CommandTable[0]))
|
||||
|
@ -858,3 +862,19 @@ static void CommandUsePreset(void)
|
|||
{
|
||||
FCEUI_UseInputPreset(execcmd-EMUCMD_MISC_USE_INPUT_PRESET_1);
|
||||
}
|
||||
|
||||
static void BackgroundDisplayToggle(void)
|
||||
{
|
||||
bool spr, bg;
|
||||
FCEUI_GetRenderPlanes(spr,bg);
|
||||
bg = !bg;
|
||||
FCEUI_SetRenderPlanes(spr,bg);
|
||||
}
|
||||
|
||||
static void ObjectDisplayToggle(void)
|
||||
{
|
||||
bool spr, bg;
|
||||
FCEUI_GetRenderPlanes(spr,bg);
|
||||
spr = !spr;
|
||||
FCEUI_SetRenderPlanes(spr,bg);
|
||||
}
|
|
@ -226,6 +226,8 @@ enum EMUCMD
|
|||
EMUCMD_MISC_USE_INPUT_PRESET_1,
|
||||
EMUCMD_MISC_USE_INPUT_PRESET_2,
|
||||
EMUCMD_MISC_USE_INPUT_PRESET_3,
|
||||
EMUCMD_MISC_DISPLAY_BG_TOGGLE,
|
||||
EMUCMD_MISC_DISPLAY_OBJ_TOGGLE,
|
||||
|
||||
EMUCMD_MAX
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue