mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Rename menu_input_frame_retropad to menu_event
This commit is contained in:
parent
528d5edad0
commit
de1c5ec8bd
@ -566,7 +566,7 @@ static unsigned menu_input_frame_pointer(unsigned *data)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned menu_input_frame_retropad(retro_input_t input,
|
unsigned menu_event(retro_input_t input,
|
||||||
retro_input_t trigger_input)
|
retro_input_t trigger_input)
|
||||||
{
|
{
|
||||||
menu_animation_ctx_delta_t delta;
|
menu_animation_ctx_delta_t delta;
|
||||||
|
@ -87,7 +87,14 @@ typedef struct menu_input_ctx_hitbox
|
|||||||
int32_t y2;
|
int32_t y2;
|
||||||
} menu_input_ctx_hitbox_t;
|
} 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);
|
void menu_input_post_iterate(int *ret, unsigned action);
|
||||||
|
|
||||||
|
@ -1553,7 +1553,7 @@ int runloop_iterate(unsigned *sleep_ms)
|
|||||||
if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL))
|
if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL))
|
||||||
{
|
{
|
||||||
int ret = runloop_iterate_menu((enum menu_action)
|
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);
|
sleep_ms);
|
||||||
|
|
||||||
if (ret == -1)
|
if (ret == -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user