[PATCH synaptics 3/4] Add a few debug messages for circular scrolling debugging

Peter Hutterer peter.hutterer at who-t.net
Tue Mar 13 22:06:57 PDT 2012


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/synaptics.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/synaptics.c b/src/synaptics.c
index 1d280ca..375ecb6 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2560,6 +2560,7 @@ HandleScrolling(SynapticsPrivate *priv, struct SynapticsHwState *hw,
 	    else
 		priv->scroll.delta_x -= diff / delta * para->scroll_dist_horiz;;
 	    priv->scroll.last_a = angle(priv, hw->x, hw->y);
+	    DBG(priv, 10, "circ scoll delta: %.2f diff %.2f angle %.2f\n", delta, diff, priv->scroll.last_a);
         }
     }
 
@@ -2816,6 +2817,7 @@ post_scroll_events(const InputInfoPtr pInfo)
         valuator_mask_set_double(priv->scroll_events_mask,
                                  priv->scroll_axis_vert,
                                  priv->scroll.delta_y);
+        DBG(priv, 10, "vert scroll delta: %.2f\n", priv->scroll.delta_y);
         priv->scroll.delta_y = 0;
     }
     if (priv->scroll.delta_x != 0.0)
@@ -2823,6 +2825,7 @@ post_scroll_events(const InputInfoPtr pInfo)
         valuator_mask_set_double(priv->scroll_events_mask,
                                  priv->scroll_axis_horiz,
                                  priv->scroll.delta_x);
+        DBG(priv, 10, "horiz scroll delta: %.2f\n", priv->scroll.delta_x);
         priv->scroll.delta_x = 0;
     }
     if (valuator_mask_num_valuators(priv->scroll_events_mask))
-- 
1.7.7.6



More information about the xorg-devel mailing list