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.
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_longtouch ed(LibTouchRe
disable_ timers( priv);
xf86PostButto nEvent( priv->local- >dev, TRUE,
priv-> cur_x,
priv-> cur_y); btn_stat |= 1 << 1; btn_stat |= 1 << 3;
{
/* 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"));
- 1, 1, 0, 2,
+ 3, 1, 0, 2,
- priv->pressed_
+ priv->pressed_
}
@@ -515,7 +523,7 @@ static int handle_ oneandahalftap( LibTouc
/* FIXME: Make OneAndHalf-Event configurable */
xf86PostButt onEvent (priv->local->dev, TRUE,
3, 1, 0, 2,
priv- >cur_x,
/* for now RB down */
- DBG(4, ErrorF("LibTouch: Issuing Button-press 1\n"));
+ DBG(4, ErrorF("LibTouch: Issuing Button-press 3\n"));
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.