Use the correct index for pressing an axis button.

Oops.
This commit is contained in:
Bill Currie 2013-01-28 19:36:25 +09:00
parent 8314edce4d
commit 1811d00568

View file

@ -98,8 +98,10 @@ joy_check_axis_buttons (struct joy_axis *ja, float value)
// press the active button if there is one
if (pressed >= 0) {
// FIXME support repeat?
if (!ab->state)
ab = &ja->axis_buttons[pressed];
if (!ab->state) {
Key_Event (ab->key, 0, 1);
}
ab->state = 1;
}
}