Clear complete keymap instead of only the first element

This commit is contained in:
Sascha Hlusiak
2008-03-30 13:05:35 +02:00
parent a44e15ad75
commit fac2c42a01

View File

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