diff options
Diffstat (limited to 'src/wcmConfig.c')
-rw-r--r-- | src/wcmConfig.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/wcmConfig.c b/src/wcmConfig.c index ff6fab2..c1e84f9 100644 --- a/src/wcmConfig.c +++ b/src/wcmConfig.c @@ -982,7 +982,7 @@ static int wcmInitAxes(WacomDevicePtr priv) Bool wcmDevInit(WacomDevicePtr priv) { WacomCommonPtr common = priv->common; - int nbaxes, nbbuttons, nbkeys; + int nbaxes, nbbuttons; /* Detect tablet configuration, if possible */ if (priv->common->wcmModel->DetectConfig) @@ -999,12 +999,10 @@ Bool wcmDevInit(WacomDevicePtr priv) /* if more than 3 buttons, offset by the four scroll buttons, * otherwise, alloc 7 buttons for scroll wheel. */ nbbuttons = min(max(nbbuttons + 4, 7), WCM_MAX_BUTTONS); - nbkeys = nbbuttons; /* Same number of keys since any button may be - * configured as an either mouse button or key */ DBG(10, priv, - "(type %d) %d buttons, %d keys, %d axes\n", - priv->type, nbbuttons, nbkeys, nbaxes); + "(type %d) %d buttons, %d axes\n", + priv->type, nbbuttons, nbaxes); if (!wcmInitButtons(priv, nbbuttons)) { |