diff --git a/menu/menu_input.c b/menu/menu_input.c index dc92a6019a..2e4020625f 100644 --- a/menu/menu_input.c +++ b/menu/menu_input.c @@ -1204,10 +1204,10 @@ void menu_input_post_iterate(int *ret, unsigned action) *ret |= menu_input_pointer_post_iterate(cbs, &entry, action); } -unsigned menu_input_frame(retro_input_t input, retro_input_t trigger_input) +enum menu_action menu_input_frame(retro_input_t input, retro_input_t trigger_input) { float delta_time; - unsigned ret = MENU_ACTION_NOOP; + enum menu_action ret = MENU_ACTION_NOOP; static bool initial_held = true; static bool first_held = false; static const retro_input_t input_repeat = diff --git a/menu/menu_input.h b/menu/menu_input.h index 5c042a6cf6..148ad1bb4d 100644 --- a/menu/menu_input.h +++ b/menu/menu_input.h @@ -25,7 +25,7 @@ extern "C" { #endif -typedef enum menu_action +enum menu_action { MENU_ACTION_UP, MENU_ACTION_DOWN, @@ -42,7 +42,7 @@ typedef enum menu_action MENU_ACTION_SCROLL_UP, MENU_ACTION_TOGGLE, MENU_ACTION_NOOP -} menu_action_t; +}; enum menu_input_pointer_state { @@ -107,7 +107,7 @@ void menu_input_st_cheat_callback(void *userdata, const char *str); int menu_input_bind_iterate(char *s, size_t len); -unsigned menu_input_frame(retro_input_t input, retro_input_t trigger_state); +enum menu_action menu_input_frame(retro_input_t input, retro_input_t trigger_state); void menu_input_post_iterate(int *ret, unsigned action);