Rename menu_input_frame_retropad to menu_event

This commit is contained in:
twinaphex 2016-09-15 21:14:45 +02:00
parent 528d5edad0
commit de1c5ec8bd
3 changed files with 10 additions and 3 deletions

View File

@ -566,7 +566,7 @@ static unsigned menu_input_frame_pointer(unsigned *data)
return ret;
}
unsigned menu_input_frame_retropad(retro_input_t input,
unsigned menu_event(retro_input_t input,
retro_input_t trigger_input)
{
menu_animation_ctx_delta_t delta;

View File

@ -87,7 +87,14 @@ typedef struct menu_input_ctx_hitbox
int32_t y2;
} menu_input_ctx_hitbox_t;
unsigned menu_input_frame_retropad(retro_input_t input, retro_input_t trigger_state);
/* Send input code to menu for one frame.
*
* TODO/FIXME - needs to be overhauled so we can send multiple
* events per frame if we want to, and we shouldn't send the
* entire button state either but do a separate event per button
* state.
*/
unsigned menu_event(retro_input_t input, retro_input_t trigger_state);
void menu_input_post_iterate(int *ret, unsigned action);

View File

@ -1553,7 +1553,7 @@ int runloop_iterate(unsigned *sleep_ms)
if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL))
{
int ret = runloop_iterate_menu((enum menu_action)
menu_input_frame_retropad(cmd.state[0], cmd.state[2]),
menu_event(cmd.state[0], cmd.state[2]),
sleep_ms);
if (ret == -1)