summaryrefslogtreecommitdiff
path: root/synclient.c
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-02-25 18:31:07 +0100
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:49 +0200
commit8307eaaced6e8192f0119b27cf9db091e4941352 (patch)
treed7d757862642b7e7e3709a891053083b9e465a2a /synclient.c
parentec6c36c16d5f7093f194595607bc9d2e1d114f5f (diff)
Added support for middle mouse buttons. (Some ALPS touchpads
have them.)
Diffstat (limited to 'synclient.c')
-rw-r--r--synclient.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/synclient.c b/synclient.c
index eb1891c..9683857 100644
--- a/synclient.c
+++ b/synclient.c
@@ -173,6 +173,7 @@ static int is_equal(SynapticsSHM* s1, SynapticsSHM* s2)
(s1->right == s2->right) &&
(s1->up == s2->up) &&
(s1->down == s2->down) &&
+ (s1->middle == s2->middle) &&
(s1->guest_left == s2->guest_left) &&
(s1->guest_mid == s2->guest_mid) &&
(s1->guest_right == s2->guest_right) &&
@@ -200,18 +201,18 @@ static void monitor(SynapticsSHM* synshm, int delay)
SynapticsSHM cur = *synshm;
if (!is_equal(&old, &cur)) {
if (!header) {
- printf("%8s %4s %4s %3s %s %2s %2s %s %s %s %8s "
+ printf("%8s %4s %4s %3s %s %2s %2s %s %s %s %s %8s "
"%2s %2s %2s %3s %3s\n",
- "time", "x", "y", "z", "f", "w", "l", "r", "u", "d",
+ "time", "x", "y", "z", "f", "w", "l", "r", "u", "d", "m",
"multi", "gl", "gm", "gr", "gdx", "gdy");
header = 20;
}
header--;
- printf("%8.3f %4d %4d %3d %d %2d %2d %d %d %d %d%d%d%d%d%d%d%d "
+ printf("%8.3f %4d %4d %3d %d %2d %2d %d %d %d %d %d%d%d%d%d%d%d%d "
"%2d %2d %2d %3d %3d\n",
get_time() - t0,
cur.x, cur.y, cur.z, cur.numFingers, cur.fingerWidth,
- cur.left, cur.right, cur.up, cur.down,
+ cur.left, cur.right, cur.up, cur.down, cur.middle,
cur.multi[0], cur.multi[1], cur.multi[2], cur.multi[3],
cur.multi[4], cur.multi[5], cur.multi[6], cur.multi[7],
cur.guest_left, cur.guest_mid, cur.guest_right,