Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323029
b: refs/heads/master
c: 30ebb7f
h: refs/heads/master
i:
  323027: e38a317
v: v3
  • Loading branch information
Tai-hwa Liang authored and Dmitry Torokhov committed Sep 19, 2012
1 parent 249da87 commit 2190d25
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59d1f5c41a21f0d87973f2dedd40efd927a201d6
refs/heads/master: 30ebb7fa0e3e92145b859ad6e44aa6dc636b4103
11 changes: 11 additions & 0 deletions trunk/drivers/input/mouse/sentelic.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,17 @@ static psmouse_ret_t fsp_process_byte(struct psmouse *psmouse)

switch (psmouse->packet[0] >> FSP_PKT_TYPE_SHIFT) {
case FSP_PKT_TYPE_ABS:

if ((packet[0] == 0x48 || packet[0] == 0x49) &&
packet[1] == 0 && packet[2] == 0) {
/*
* Ignore coordinate noise when finger leaving the
* surface, otherwise cursor may jump to upper-left
* corner.
*/
packet[3] &= 0xf0;
}

abs_x = GET_ABS_X(packet);
abs_y = GET_ABS_Y(packet);

Expand Down

0 comments on commit 2190d25

Please sign in to comment.