mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Ensure the axis button's state starts at 0.
realloc doesn't do that for us.
This commit is contained in:
parent
1811d00568
commit
5c08e97b0b
1 changed files with 1 additions and 0 deletions
|
@ -300,6 +300,7 @@ in_joy_button_add_f (int ax, int index)
|
|||
joy_axes[ax].axis_buttons = realloc (joy_axes[ax].axis_buttons, size);
|
||||
joy_axes[ax].axis_buttons[n].key = keynum;
|
||||
joy_axes[ax].axis_buttons[n].threshold = threshold;
|
||||
joy_axes[ax].axis_buttons[n].state = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue