From bc749d1c3c4c26708601a00863c9e5d1aaa6f57d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 24 Mar 2015 10:10:14 +0100 Subject: [PATCH] Move rarch_cmd_state_t definition to retroarch.h --- retroarch.h | 35 +++++++++++++++++++++++++++++++++++ runloop.c | 39 --------------------------------------- 2 files changed, 35 insertions(+), 39 deletions(-) diff --git a/retroarch.h b/retroarch.h index bc35fecb48..321a9600cf 100644 --- a/retroarch.h +++ b/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); diff --git a/runloop.c b/runloop.c index a87644c2c4..ac4a87b601 100644 --- a/runloop.c +++ b/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. *