← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 317127] Re: evtouch calibrate tool does not detect mouse position

 

hi,

My moving, scrolling, dragging, and so on are finally working.

I made a new patch file for the changes I made attached to this message.

The patch file can replace the "02-buttonless-device.patch" file that
comes with the downloaded source file from the Jaunty repository in
"debian/patches", and you need to remove the uncomment (#) symbol in
front of the "02-buttonless-device.patch" before building package for
the patch to work, or you can just apply the patch manually.

I manually applied all the changes that were in the old patch file which
seems to there since the 0.8.3 version of "xserver-xorg-input-evtouch".

I had to compensate for some slight changes in versions in order to
fully implement the patch changes to the evtouch.c file.

However, I could only apply one of the changes to the libtouch.c file,
as I was not sure how to implement the other two changes.

Here are the other two changes which were not implemented from the old
file:

begin---------------------------------------

@@ -336,13 +344,13 @@ static void enter_longtouched(LibTouchRe
 {
         disable_timers(priv);
         /* FIXME: Make Longtouch-Event configurable*/
-        /* for now issue an LB down */
-        DBG(4, ErrorF("LibTouch: Issuing Button-press 1\n"));
+        /* for now issue an RB down */
+        DBG(4, ErrorF("LibTouch: Issuing Button-press 3\n"));
         xf86PostButtonEvent(priv->local->dev, TRUE,
-                            1, 1, 0, 2,
+                            3, 1, 0, 2,
                             priv->cur_x, 
                             priv->cur_y);
-        priv->pressed_btn_stat |= 1 << 1;
+        priv->pressed_btn_stat |= 1 << 3;
 }
 
 
@@ -515,7 +523,7 @@ static int handle_oneandahalftap(LibTouc
 
                 /* FIXME: Make OneAndHalf-Event configurable */
                 /* for now RB down */
-                DBG(4, ErrorF("LibTouch: Issuing Button-press 1\n"));
+                DBG(4, ErrorF("LibTouch: Issuing Button-press 3\n"));
                 xf86PostButtonEvent (priv->local->dev, TRUE,
                                      3, 1, 0, 2, 
                                      priv->cur_x, 

end
-----------------------------------------------------------------------

If anyone can take a look at the patch file I made and confirm whether
the changes are safe and sane, I would appreciate it.

Also, if anyone could take a look into the unimplemented changes and
elaborate on them and clarify as to what they leave out, if anything.
Thanks.

** Attachment added: "Patch for xserver-xorg-input-evtouch to enable touch move, scroll, drag"
   http://launchpadlibrarian.net/26529094/02-buttonless-device.patch

-- 
evtouch calibrate tool does not detect mouse position
https://bugs.launchpad.net/bugs/317127
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xf86-input-evtouch in ubuntu.