summaryrefslogtreecommitdiff
path: root/eventcomm.c
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-07-30 23:21:30 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:44 +0200
commitb46a57ef3dd6d18da812dfe00f44690605a429e5 (patch)
treecad4dd0b3e30ab7b395a70c40ebb5f98984d1c95 /eventcomm.c
parent7e210b8b981b01f4fe75c7bd4eef07881d3aa4d6 (diff)
Implemented ALPS DualPoint support from change
c01b4c0bceb65df01b7ddfb180fc367c6d070370 also for the 2.6 linux kernel.
Diffstat (limited to 'eventcomm.c')
-rw-r--r--eventcomm.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/eventcomm.c b/eventcomm.c
index 598bd86..1beb32b 100644
--- a/eventcomm.c
+++ b/eventcomm.c
@@ -147,6 +147,7 @@ EventReadHwState(LocalDevicePtr local, struct SynapticsHwInfo *synhw,
else
hw->numFingers = 0;
*hwRet = *hw;
+ hw->guest_dx = hw->guest_dy = 0;
return TRUE;
}
case EV_KEY:
@@ -200,6 +201,12 @@ EventReadHwState(LocalDevicePtr local, struct SynapticsHwInfo *synhw,
case BTN_TOOL_TRIPLETAP:
comm->threeFingers = v;
break;
+ case BTN_A:
+ hw->guest_left = v;
+ break;
+ case BTN_B:
+ hw->guest_right = v;
+ break;
}
break;
case EV_ABS:
@@ -218,6 +225,16 @@ EventReadHwState(LocalDevicePtr local, struct SynapticsHwInfo *synhw,
break;
}
break;
+ case EV_REL:
+ switch (ev.code) {
+ case REL_X:
+ hw->guest_dx = ev.value;
+ break;
+ case REL_Y:
+ hw->guest_dy = ev.value;
+ break;
+ }
+ break;
}
}
return FALSE;