mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
(RARCH_CONSOLE) Now uses same menu input binds for menu as
PC - allows analog sticks to be used for navigation as well for consoles
This commit is contained in:
parent
a5daca5946
commit
261ac0e3e7
@ -431,11 +431,7 @@ uint64_t menu_input(void)
|
|||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
uint64_t input_state;
|
uint64_t input_state;
|
||||||
#ifdef RARCH_CONSOLE
|
|
||||||
static const struct retro_keybind *binds[] = { g_settings.input.menu_binds };
|
|
||||||
#else
|
|
||||||
static const struct retro_keybind *binds[] = { g_settings.input.binds[0] };
|
static const struct retro_keybind *binds[] = { g_settings.input.binds[0] };
|
||||||
#endif
|
|
||||||
rgui_handle_t *rgui = (rgui_handle_t*)driver.menu;
|
rgui_handle_t *rgui = (rgui_handle_t*)driver.menu;
|
||||||
|
|
||||||
if (!rgui)
|
if (!rgui)
|
||||||
|
@ -352,9 +352,6 @@ void config_set_defaults(void)
|
|||||||
rarch_assert(sizeof(g_settings.input.binds[0]) >= sizeof(retro_keybinds_1));
|
rarch_assert(sizeof(g_settings.input.binds[0]) >= sizeof(retro_keybinds_1));
|
||||||
rarch_assert(sizeof(g_settings.input.binds[1]) >= sizeof(retro_keybinds_rest));
|
rarch_assert(sizeof(g_settings.input.binds[1]) >= sizeof(retro_keybinds_rest));
|
||||||
memcpy(g_settings.input.binds[0], retro_keybinds_1, sizeof(retro_keybinds_1));
|
memcpy(g_settings.input.binds[0], retro_keybinds_1, sizeof(retro_keybinds_1));
|
||||||
#ifdef RARCH_CONSOLE
|
|
||||||
memcpy(g_settings.input.menu_binds, retro_keybinds_menu, sizeof(retro_keybinds_menu));
|
|
||||||
#endif
|
|
||||||
for (i = 1; i < MAX_PLAYERS; i++)
|
for (i = 1; i < MAX_PLAYERS; i++)
|
||||||
memcpy(g_settings.input.binds[i], retro_keybinds_rest, sizeof(retro_keybinds_rest));
|
memcpy(g_settings.input.binds[i], retro_keybinds_rest, sizeof(retro_keybinds_rest));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user