From d895afd90c2965a26f8bc60cdb405cf5d8b9ead5 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 2 Oct 2010 03:28:34 +0200 Subject: [PATCH] Another bug. --- gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl.c b/gl.c index d90fb1dc8f..9111ada6df 100644 --- a/gl.c +++ b/gl.c @@ -98,7 +98,7 @@ static int16_t glfw_input_state(void *data, const struct snes_keybind **binds, b bool pressed = false; if ( glfwGetKey(snes_keybinds[i].key) ) pressed = true; - else if ( (joypad_count > id) && (snes_keybinds[i].joykey < joypad_buttons[port_num]) && (buttons[snes_keybinds[i].joykey] == GLFW_PRESS) ) + else if ( (joypad_count > port_num) && (snes_keybinds[i].joykey < joypad_buttons[port_num]) && (buttons[snes_keybinds[i].joykey] == GLFW_PRESS) ) pressed = true; set_fast_forward_button(pressed); break;