mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +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
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue