Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69389
b: refs/heads/master
c: 937ad5c
h: refs/heads/master
i:
  69387: c2ad4aa
v: v3
  • Loading branch information
Soeren Sonnenburg authored and Dmitry Torokhov committed Oct 13, 2007
1 parent 528d5f3 commit b020c62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aefca8ba5f1b95431e33a52736bab128fc4f80d4
refs/heads/master: 937ad5c1e35191d29d305280525394fe87f4ac4f
15 changes: 10 additions & 5 deletions trunk/drivers/input/mouse/appletouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,18 +502,23 @@ static void atp_complete(struct urb* urb)

/* reset the accumulator on release */
memset(dev->xy_acc, 0, sizeof(dev->xy_acc));
}

/* Geyser 3 will continue to send packets continually after
the first touch unless reinitialised. Do so if it's been
idle for a while in order to avoid waking the kernel up
several hundred times a second */

/* Geyser 3 will continue to send packets continually after
the first touch unless reinitialised. Do so if it's been
idle for a while in order to avoid waking the kernel up
several hundred times a second */
if (!key && atp_is_geyser_3(dev)) {
if (atp_is_geyser_3(dev)) {
if (!x && !y && !key) {
dev->idlecount++;
if (dev->idlecount == 10) {
dev->valid = 0;
schedule_work(&dev->work);
}
}
else
dev->idlecount = 0;
}

input_report_key(dev->input, BTN_LEFT, key);
Expand Down

0 comments on commit b020c62

Please sign in to comment.