aboutsummaryrefslogtreecommitdiffstats
path: root/driver/multitouch.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-15 20:24:14 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-06-16 02:28:08 +0200
commit78085b21f2dc7b1d49a0c54ab56b567fc195d440 (patch)
tree3ae649c25b380114ce2eaa5463350fb9b29ee78c /driver/multitouch.c
parent4583da1ad81b59b2a8cd2ae51c32b1bc8d32f1c4 (diff)
downloadxorg-input-kobomultitouch-78085b21f2dc7b1d49a0c54ab56b567fc195d440.tar.gz
xorg-input-kobomultitouch-78085b21f2dc7b1d49a0c54ab56b567fc195d440.tar.bz2
xorg-input-kobomultitouch-78085b21f2dc7b1d49a0c54ab56b567fc195d440.zip
refactor: Simplify capabilities
Use the generated abs2mt mapping to simplify the MT device capabilities. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'driver/multitouch.c')
-rw-r--r--driver/multitouch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/driver/multitouch.c b/driver/multitouch.c
index 7e275b3..ee5242f 100644
--- a/driver/multitouch.c
+++ b/driver/multitouch.c
@@ -141,16 +141,16 @@ static int device_init(DeviceIntPtr dev, LocalDevicePtr local)
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[0],
#endif
- mt->caps.abs_position_x.minimum,
- mt->caps.abs_position_x.maximum,
+ mt->caps.abs[BIT_POSITION_X].minimum,
+ mt->caps.abs[BIT_POSITION_X].maximum,
1, 0, 1);
xf86InitValuatorDefaults(dev, 0);
xf86InitValuatorAxisStruct(dev, 1,
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[1],
#endif
- mt->caps.abs_position_y.minimum,
- mt->caps.abs_position_y.maximum,
+ mt->caps.abs[BIT_POSITION_Y].minimum,
+ mt->caps.abs[BIT_POSITION_Y].maximum,
1, 0, 1);
xf86InitValuatorDefaults(dev, 1);