From 2f16fb134507af665ae7e3b6926a5efa543c62a0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 24 Jun 2019 05:09:21 +0200 Subject: [PATCH] (libnx) Buildfix --- input/drivers/switch_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/drivers/switch_input.c b/input/drivers/switch_input.c index 0bd2c9ad6b..79c512ebc4 100644 --- a/input/drivers/switch_input.c +++ b/input/drivers/switch_input.c @@ -287,7 +287,7 @@ static int16_t switch_input_state(void *data, { /* Auto-binds are per joypad, not per user. */ const uint16_t joykey = (binds[port][id].joykey != NO_BTN) - ? binds[port][id].joykey : joypad_info.auto_binds[i].joykey; + ? binds[port][id].joykey : joypad_info.auto_binds[id].joykey; const uint32_t joyaxis = (binds[port][id].joyaxis != AXIS_NONE) ? binds[port][id].joyaxis : joypad_info.auto_binds[id].joyaxis; if (joykey != NO_BTN && sw->joypad->button(joypad_info.joy_idx, joykey))