mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 22:38:34 +00:00
Revert "Can't have hardcoded binds structs for 8 players"
This reverts commit 2579af2764
.
This commit is contained in:
parent
b59c262971
commit
d67e4da4db
28
retroarch.c
28
retroarch.c
@ -538,27 +538,13 @@ static int16_t input_state(unsigned port, unsigned device, unsigned index, unsig
|
||||
|
||||
static const struct retro_keybind *binds[MAX_PLAYERS] = {
|
||||
g_settings.input.binds[0],
|
||||
#if MAX_PADS > 1
|
||||
g_settings.input.binds[1],
|
||||
#endif
|
||||
#if MAX_PADS > 2
|
||||
g_settings.input.binds[2],
|
||||
#endif
|
||||
#if MAX_PADS > 3
|
||||
g_settings.input.binds[3],
|
||||
#endif
|
||||
#if MAX_PADS > 4
|
||||
g_settings.input.binds[4],
|
||||
#endif
|
||||
#if MAX_PADS > 5
|
||||
g_settings.input.binds[5],
|
||||
#endif
|
||||
#if MAX_PADS > 6
|
||||
g_settings.input.binds[6],
|
||||
#endif
|
||||
#if MAX_PADS > 7
|
||||
g_settings.input.binds[7],
|
||||
#endif
|
||||
};
|
||||
|
||||
int16_t res = 0;
|
||||
@ -2303,27 +2289,13 @@ static void check_turbo(void)
|
||||
|
||||
static const struct retro_keybind *binds[MAX_PLAYERS] = {
|
||||
g_settings.input.binds[0],
|
||||
#if MAX_PADS > 1
|
||||
g_settings.input.binds[1],
|
||||
#endif
|
||||
#if MAX_PADS > 2
|
||||
g_settings.input.binds[2],
|
||||
#endif
|
||||
#if MAX_PADS > 3
|
||||
g_settings.input.binds[3],
|
||||
#endif
|
||||
#if MAX_PADS > 4
|
||||
g_settings.input.binds[4],
|
||||
#endif
|
||||
#if MAX_PADS > 5
|
||||
g_settings.input.binds[5],
|
||||
#endif
|
||||
#if MAX_PADS > 6
|
||||
g_settings.input.binds[6],
|
||||
#endif
|
||||
#if MAX_PADS > 7
|
||||
g_settings.input.binds[7],
|
||||
#endif
|
||||
};
|
||||
|
||||
for (unsigned i = 0; i < MAX_PLAYERS; i++)
|
||||
|
15
settings.c
15
settings.c
@ -839,27 +839,14 @@ static const struct bind_map bind_maps[MAX_PLAYERS][RARCH_BIND_LIST_END_NULL] =
|
||||
DECLARE_BIND(disk_next, RARCH_DISK_NEXT),
|
||||
DECLARE_BIND(menu_toggle, RARCH_MENU_TOGGLE),
|
||||
},
|
||||
#if MAX_PADS > 1
|
||||
|
||||
{ DECL_PLAYER(2) },
|
||||
#endif
|
||||
#if MAX_PADS > 2
|
||||
{ DECL_PLAYER(3) },
|
||||
#endif
|
||||
#if MAX_PADS > 3
|
||||
{ DECL_PLAYER(4) },
|
||||
#endif
|
||||
#if MAX_PADS > 4
|
||||
{ DECL_PLAYER(5) },
|
||||
#endif
|
||||
#if MAX_PADS > 5
|
||||
{ DECL_PLAYER(6) },
|
||||
#endif
|
||||
#if MAX_PADS > 6
|
||||
{ DECL_PLAYER(7) },
|
||||
#endif
|
||||
#if MAX_PADS > 7
|
||||
{ DECL_PLAYER(8) },
|
||||
#endif
|
||||
};
|
||||
|
||||
struct key_map
|
||||
|
Loading…
Reference in New Issue
Block a user