summaryrefslogtreecommitdiff
path: root/src/alpscomm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alpscomm.c')
-rw-r--r--src/alpscomm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/alpscomm.c b/src/alpscomm.c
index dc76655..7ae2da1 100644
--- a/src/alpscomm.c
+++ b/src/alpscomm.c
@@ -155,6 +155,8 @@ ALPS_process_packet(unsigned char *packet, struct SynapticsHwState *hw)
int left = 0, right = 0, middle = 0;
int i;
+ hw->millis = GetTimeInMillis();
+
x = (packet[1] & 0x7f) | ((packet[2] & 0x78) << (7-3));
y = (packet[4] & 0x7f) | ((packet[3] & 0x70) << (7-4));
z = packet[5];