mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-04-14 11:54:23 +00:00
Clear complete keymap instead of only the first element
This commit is contained in:
@@ -481,7 +481,7 @@ jstkCorePreInit(InputDriverPtr drv, IDevPtr dev, int flags)
|
||||
priv->amplify = 1.0f;
|
||||
priv->buttonmap.size = 0;
|
||||
priv->keymap.size = 1;
|
||||
priv->keymap.map[0] = NoSymbol;
|
||||
memset(priv->keymap.map, NoSymbol, sizeof(priv->keymap.map));
|
||||
priv->repeat_delay = 0;
|
||||
priv->repeat_interval = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user