From a887fad9043c420449e97ed29799af0d67561df3 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 2 Oct 2010 03:26:45 +0200 Subject: [PATCH] Fix joypad bug. --- gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl.c b/gl.c index 01f51fa4d4..d90fb1dc8f 100644 --- a/gl.c +++ b/gl.c @@ -80,7 +80,7 @@ static int16_t glfw_input_state(void *data, const struct snes_keybind **binds, b int port_num = port ? 1 : 0; unsigned char buttons[BUTTONS_MAX]; - if ( joypad_count > id ) + if ( joypad_count > port_num ) glfwGetJoystickButtons(joypad_id[port_num], buttons, joypad_buttons[port_num]);