mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Move rarch_cmd_state_t definition to retroarch.h
This commit is contained in:
parent
d573093f0b
commit
bc749d1c3c
35
retroarch.h
35
retroarch.h
@ -219,6 +219,41 @@ struct rarch_main_wrap
|
||||
bool touched;
|
||||
};
|
||||
|
||||
typedef struct rarch_cmd_state
|
||||
{
|
||||
bool fullscreen_toggle;
|
||||
bool overlay_next_pressed;
|
||||
bool grab_mouse_pressed;
|
||||
bool menu_pressed;
|
||||
bool quit_key_pressed;
|
||||
bool screenshot_pressed;
|
||||
bool mute_pressed;
|
||||
bool volume_up_pressed;
|
||||
bool volume_down_pressed;
|
||||
bool reset_pressed;
|
||||
bool disk_prev_pressed;
|
||||
bool disk_next_pressed;
|
||||
bool disk_eject_pressed;
|
||||
bool movie_record;
|
||||
bool save_state_pressed;
|
||||
bool load_state_pressed;
|
||||
bool slowmotion_pressed;
|
||||
bool shader_next_pressed;
|
||||
bool shader_prev_pressed;
|
||||
bool fastforward_pressed;
|
||||
bool hold_pressed;
|
||||
bool old_hold_pressed;
|
||||
bool state_slot_increase;
|
||||
bool state_slot_decrease;
|
||||
bool pause_pressed;
|
||||
bool frameadvance_pressed;
|
||||
bool rewind_pressed;
|
||||
bool netplay_flip_pressed;
|
||||
bool cheat_index_plus_pressed;
|
||||
bool cheat_index_minus_pressed;
|
||||
bool cheat_toggle_pressed;
|
||||
} rarch_cmd_state_t;
|
||||
|
||||
void rarch_main_alloc(void);
|
||||
|
||||
void rarch_main_new(void);
|
||||
|
39
runloop.c
39
runloop.c
@ -431,41 +431,6 @@ static void do_state_check_menu_toggle(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
typedef struct rarch_cmd_state
|
||||
{
|
||||
bool fullscreen_toggle;
|
||||
bool overlay_next_pressed;
|
||||
bool grab_mouse_pressed;
|
||||
bool menu_pressed;
|
||||
bool quit_key_pressed;
|
||||
bool screenshot_pressed;
|
||||
bool mute_pressed;
|
||||
bool volume_up_pressed;
|
||||
bool volume_down_pressed;
|
||||
bool reset_pressed;
|
||||
bool disk_prev_pressed;
|
||||
bool disk_next_pressed;
|
||||
bool disk_eject_pressed;
|
||||
bool movie_record;
|
||||
bool save_state_pressed;
|
||||
bool load_state_pressed;
|
||||
bool slowmotion_pressed;
|
||||
bool shader_next_pressed;
|
||||
bool shader_prev_pressed;
|
||||
bool fastforward_pressed;
|
||||
bool hold_pressed;
|
||||
bool old_hold_pressed;
|
||||
bool state_slot_increase;
|
||||
bool state_slot_decrease;
|
||||
bool pause_pressed;
|
||||
bool frameadvance_pressed;
|
||||
bool rewind_pressed;
|
||||
bool netplay_flip_pressed;
|
||||
bool cheat_index_plus_pressed;
|
||||
bool cheat_index_minus_pressed;
|
||||
bool cheat_toggle_pressed;
|
||||
} rarch_cmd_state_t;
|
||||
|
||||
/**
|
||||
* do_pre_state_checks:
|
||||
*
|
||||
@ -540,10 +505,6 @@ static int do_pause_state_checks(
|
||||
|
||||
/**
|
||||
* do_state_checks:
|
||||
* @input : input sample for this frame
|
||||
* @old_input : input sample of the previous frame
|
||||
* @trigger_input : difference' input sample - difference
|
||||
* between 'input' and 'old_input'
|
||||
*
|
||||
* Checks for state changes in this frame.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user