Fix joypad bug.

This commit is contained in:
Themaister 2010-10-02 03:26:45 +02:00
parent 6ce2e642ca
commit a887fad904

2
gl.c
View File

@ -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]);