mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-03-24 01:34:06 +00:00
Missing initialization of button amplify
Always initialize button[]->amplify with 1.0
This commit is contained in:
@@ -561,6 +561,7 @@ jstkCorePreInit(InputDriverPtr drv, IDevPtr dev, int flags)
|
||||
priv->button[i].mapping = JSTK_MAPPING_NONE;
|
||||
priv->button[i].currentspeed = 1.0f;
|
||||
priv->button[i].subpixel = 0.0f;
|
||||
priv->button[i].amplify = 1.0;
|
||||
for (j=0; j<MAXKEYSPERBUTTON; j++)
|
||||
priv->button[i].keys[j] = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user