Refactor old_state out of meta_input_keys_pressed into rarch_main_iterate