diff --git a/gfx/ext/rarch_video.h b/gfx/ext/rarch_video.h index be3f93a009..d56d0ba000 100644 --- a/gfx/ext/rarch_video.h +++ b/gfx/ext/rarch_video.h @@ -204,7 +204,7 @@ typedef struct rarch_input_driver // The range of this is [0, 1], // where 0 means any displacement will register, // and 1 means the axis has to be pressed all the way to register. - void *(*init)(const int joypad_index[5], float axis_threshold); + void *(*init)(const int joypad_index[8], float axis_threshold); // Polls input. Called once every frame. void (*poll)(void *data); diff --git a/gfx/ext_gfx.c b/gfx/ext_gfx.c index 0b2e5aee90..be8736044e 100644 --- a/gfx/ext_gfx.c +++ b/gfx/ext_gfx.c @@ -183,9 +183,8 @@ static bool video_ext_frame(void *data, const void *frame, unsigned width, unsig static void *setup_input(ext_t *ext, const rarch_input_driver_t *driver) { - // TODO: Change external API to allow more players. To be done in next major ABI break. - int joypad_index[5]; - for (unsigned i = 0; i < 5; i++) + int joypad_index[8]; + for (unsigned i = 0; i < 8; i++) joypad_index[i] = g_settings.input.joypad_map[i] < 0 ? -1 : g_settings.input.joypad_map[i]; void *handle = driver->init(joypad_index, g_settings.input.axis_threshold);