diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-07 02:08:09 +0100 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-07 02:08:09 +0100 |
commit | 79e375ff801bfe6caa27524c001a6ce8b27cec6f (patch) | |
tree | 557ee2792b1885186262a7a18c37bf5b09157c66 | |
parent | 2cd550cb34ea0304761c0ddc8c278e02c4a4dfcf (diff) | |
download | xorg-input-kobomultitouch-79e375ff801bfe6caa27524c001a6ce8b27cec6f.tar.gz xorg-input-kobomultitouch-79e375ff801bfe6caa27524c001a6ce8b27cec6f.tar.bz2 xorg-input-kobomultitouch-79e375ff801bfe6caa27524c001a6ce8b27cec6f.zip |
and now it works!
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r-- | src/multitouch.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/multitouch.c b/src/multitouch.c index 7ea1f92..7102b1c 100644 --- a/src/multitouch.c +++ b/src/multitouch.c @@ -29,6 +29,14 @@ static void pointer_control(DeviceIntPtr dev, PtrCtrl *ctrl) { } +static int pointer_property(DeviceIntPtr dev, + Atom property, + XIPropertyValuePtr prop, + BOOL checkonly) +{ + return Success; +} + //////////////////////////////////////////////////////////////////////////// static int device_init(DeviceIntPtr dev, LocalDevicePtr local) @@ -61,15 +69,15 @@ static int device_init(DeviceIntPtr dev, LocalDevicePtr local) mt->caps.abs_position_x.minimum, mt->caps.abs_position_x.maximum, 1, 0, 1); - xf86InitValuatorDefaults(dev, 0); xf86InitValuatorAxisStruct(dev, 1, mt->caps.abs_position_y.minimum, mt->caps.abs_position_y.maximum, 1, 0, 1); + xf86InitValuatorDefaults(dev, 0); xf86InitValuatorDefaults(dev, 1); - //InitDeviceProperties(local); - //XIRegisterPropertyHandler(dev, SetProperty, NULL, NULL); + InitDeviceProperties(local); + XIRegisterPropertyHandler(dev, pointer_property, NULL, NULL); return 0; } |