mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-16 15:27:41 +00:00
Fix joypad bug.
This commit is contained in:
parent
6ce2e642ca
commit
a887fad904
2
gl.c
2
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]);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user