mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 09:02:08 +00:00
Use the correct index for pressing an axis button.
Oops.
This commit is contained in:
parent
8314edce4d
commit
1811d00568
1 changed files with 3 additions and 1 deletions
|
@ -98,8 +98,10 @@ joy_check_axis_buttons (struct joy_axis *ja, float value)
|
||||||
// press the active button if there is one
|
// press the active button if there is one
|
||||||
if (pressed >= 0) {
|
if (pressed >= 0) {
|
||||||
// FIXME support repeat?
|
// FIXME support repeat?
|
||||||
if (!ab->state)
|
ab = &ja->axis_buttons[pressed];
|
||||||
|
if (!ab->state) {
|
||||||
Key_Event (ab->key, 0, 1);
|
Key_Event (ab->key, 0, 1);
|
||||||
|
}
|
||||||
ab->state = 1;
|
ab->state = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue