Ensure the axis button's state starts at 0.

realloc doesn't do that for us.
This commit is contained in:
Bill Currie 2013-01-28 19:36:54 +09:00
parent 1811d00568
commit 5c08e97b0b
1 changed files with 1 additions and 0 deletions

View File

@ -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