Bind to correct joypad button in X11.

This commit is contained in:
Themaister 2012-09-29 00:34:44 +02:00
parent f5b6ae8e7e
commit 258a29b9b1

View File

@ -188,7 +188,7 @@ static bool x_bind_button_pressed(void *data, int key)
{
x11_input_t *x11 = (x11_input_t*)data;
return x_is_pressed(x11, g_settings.input.binds[0], key) ||
input_joypad_pressed(x11->joypad, 0, g_settings.input.binds[0]);
input_joypad_pressed(x11->joypad, 0, &g_settings.input.binds[0][key]);
}
static int16_t x_mouse_state(x11_input_t *x11, unsigned id)