mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Add MENU_INPUT_CTL_SET_FRAME_INPUT
This commit is contained in:
parent
583d4fd283
commit
c31ef24412
@ -875,6 +875,7 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
|
||||
iterate->action = pending_iter.action;
|
||||
pending_iter.action = MENU_ACTION_NOOP;
|
||||
}
|
||||
menu_input_ctl(MENU_INPUT_CTL_SET_FRAME_INPUT, iterate);
|
||||
if (menu_driver_ctx->iterate(menu_driver_data,
|
||||
menu_userdata, iterate->action) == -1)
|
||||
return false;
|
||||
|
@ -148,7 +148,8 @@ typedef struct menu_input
|
||||
} delay;
|
||||
} menu_input_t;
|
||||
|
||||
static unsigned bind_port;
|
||||
static menu_ctx_iterate_t menu_input_frame;
|
||||
static unsigned bind_port;
|
||||
|
||||
static menu_input_t *menu_input_get_ptr(void)
|
||||
{
|
||||
@ -667,6 +668,12 @@ bool menu_input_ctl(enum menu_input_ctl_state state, void *data)
|
||||
|
||||
switch (state)
|
||||
{
|
||||
case MENU_INPUT_CTL_SET_FRAME_INPUT:
|
||||
if (!data)
|
||||
return false;
|
||||
memcpy(&menu_input_frame,
|
||||
data, sizeof(menu_ctx_iterate_t));
|
||||
break;
|
||||
case MENU_INPUT_CTL_BIND_SET_MIN_MAX:
|
||||
{
|
||||
menu_input_ctx_bind_limits_t *lim =
|
||||
|
@ -91,7 +91,8 @@ enum menu_input_ctl_state
|
||||
MENU_INPUT_CTL_BIND_ALL,
|
||||
MENU_INPUT_CTL_BIND_ITERATE,
|
||||
MENU_INPUT_CTL_BIND_SET_MIN_MAX,
|
||||
MENU_INPUT_CTL_START_LINE
|
||||
MENU_INPUT_CTL_START_LINE,
|
||||
MENU_INPUT_CTL_SET_FRAME_INPUT
|
||||
};
|
||||
|
||||
typedef struct menu_input_ctx_hitbox
|
||||
|
Loading…
x
Reference in New Issue
Block a user