summaryrefslogtreecommitdiff
path: root/src/wcmConfig.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-04-07 15:23:28 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-04-14 14:06:48 +1000
commit7958bb9b1ddef9e8238615fd1b3d15996f00effe (patch)
treef6aef0d1bd1be428000b19a3eb705fddcc1f8d97 /src/wcmConfig.c
parent3081ecb428d29c639cb2874958b8f95be6978ede (diff)
downloadxf86-input-wacom-7958bb9b1ddef9e8238615fd1b3d15996f00effe.tar.gz
Move common default values to wcmNewCommon()
No functional change, just moving initialisation to where it belongs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Ping Cheng <pinglinux@gmail.com>
Diffstat (limited to 'src/wcmConfig.c')
-rw-r--r--src/wcmConfig.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/wcmConfig.c b/src/wcmConfig.c
index 5fa8271..67c2f82 100644
--- a/src/wcmConfig.c
+++ b/src/wcmConfig.c
@@ -89,35 +89,7 @@ static int wcmAllocate(InputInfoPtr pInfo)
/* JEJ - throttle sampling code */
priv->throttleLimit = -1;
- common->wcmFlags = 0; /* various flags */
common->wcmDevices = priv;
- common->wcmProtocolLevel = WCM_PROTOCOL_4; /* protocol level */
- common->wcmTPCButton = 0; /* set Tablet PC button on/off */
- common->wcmCapacity = -1; /* Capacity is disabled */
- common->wcmCapacityDefault = -1; /* default to -1 when capacity isn't supported */
- /* 3 when capacity is supported */
- common->wcmGestureParameters.wcmZoomDistance = 50;
- common->wcmGestureParameters.wcmZoomDistanceDefault = 50;
- common->wcmGestureParameters.wcmScrollDirection = 0;
- common->wcmGestureParameters.wcmScrollDistance = 20;
- common->wcmGestureParameters.wcmScrollDistanceDefault = 20;
- common->wcmGestureParameters.wcmTapTime = 250;
- common->wcmGestureParameters.wcmTapTimeDefault = 250;
- common->wcmRotate = ROTATE_NONE; /* default tablet rotation to off */
- common->wcmMaxX = 0; /* max digitizer logical X value */
- common->wcmMaxY = 0; /* max digitizer logical Y value */
- common->wcmMaxTouchX = 1024; /* max touch X value */
- common->wcmMaxTouchY = 1024; /* max touch Y value */
- common->wcmMaxStripX = 4096; /* Max fingerstrip X */
- common->wcmMaxStripY = 4096; /* Max fingerstrip Y */
- common->wcmMaxtiltX = 128; /* Max tilt in X directory */
- common->wcmMaxtiltY = 128; /* Max tilt in Y directory */
- common->wcmCursorProxoutDistDefault = PROXOUT_INTUOS_DISTANCE;
- /* default to Intuos */
- common->wcmSuppress = DEFAULT_SUPPRESS;
- /* transmit position if increment is superior */
- common->wcmRawSample = DEFAULT_SAMPLES;
- /* number of raw data to be used to for filtering */
/* tool */
priv->tool = tool;