mirror of
https://github.com/libretro/RetroArch
synced 2025-02-24 09:40:07 +00:00
Cleaner setup of bind-map.
This commit is contained in:
parent
7815940a97
commit
d1dc65f202
@ -75,9 +75,13 @@ static PyObject *py_read_input(PyObject *self, PyObject *args)
|
|||||||
if (player > MAX_PLAYERS || player < 1 || key >= SSNES_FIRST_META_KEY)
|
if (player > MAX_PLAYERS || player < 1 || key >= SSNES_FIRST_META_KEY)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
const struct snes_keybind *binds[MAX_PLAYERS];
|
static const struct snes_keybind *binds[MAX_PLAYERS] = {
|
||||||
for (int i = 0; i < MAX_PLAYERS; i++)
|
g_settings.input.binds[0],
|
||||||
binds[i] = g_settings.input.binds[i];
|
g_settings.input.binds[1],
|
||||||
|
g_settings.input.binds[2],
|
||||||
|
g_settings.input.binds[3],
|
||||||
|
g_settings.input.binds[4],
|
||||||
|
};
|
||||||
|
|
||||||
int16_t res = driver.input->input_state(driver.input_data,
|
int16_t res = driver.input->input_state(driver.input_data,
|
||||||
binds, player > 1,
|
binds, player > 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user